Skip to content

Commit 1b50b69

Browse files
committed
Chrome/Edge 143
1 parent a113011 commit 1b50b69

4 files changed

Lines changed: 2 additions & 11 deletions

File tree

src/main/java/org/htmlunit/javascript/host/intl/DateTimeFormat.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import java.time.ZoneId;
1818
import java.time.chrono.Chronology;
19-
import java.time.chrono.HijrahChronology;
2019
import java.time.chrono.JapaneseChronology;
2120
import java.time.chrono.ThaiBuddhistChronology;
2221
import java.time.format.DateTimeFormatter;
@@ -151,7 +150,6 @@ public class DateTimeFormat extends HtmlUnitScriptable {
151150
commonFormats.put("ga", mmSlash);
152151
commonFormats.put("is", mmSlash);
153152
commonFormats.put("mk", mmSlash);
154-
commonFormats.put("ar-SA", "d\u200F/M\u200F/YYYY هـ");
155153

156154
EDGE_FORMATS_.putAll(commonFormats);
157155

@@ -165,8 +163,6 @@ public class DateTimeFormat extends HtmlUnitScriptable {
165163

166164
FF_CHRONOLOGIES_.putAll(commonChronologies);
167165
FF_ESR_CHRONOLOGIES_.putAll(commonChronologies);
168-
169-
commonChronologies.put("ar-SA", HijrahChronology.INSTANCE);
170166
CHROME_CHRONOLOGIES_.putAll(commonChronologies);
171167
EDGE_CHRONOLOGIES_.putAll(commonChronologies);
172168
}

src/main/java/org/htmlunit/javascript/host/intl/NumberFormat.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public class NumberFormat extends HtmlUnitScriptable {
9191
FF_ESR_FORMATS_.putAll(commonFormats);
9292

9393
commonFormats.put("be", ",.");
94-
commonFormats.put("en-ZA", ",.");
9594
commonFormats.put("mk", ",.");
9695
commonFormats.put("is", ",.");
9796

src/test/java/org/htmlunit/javascript/host/intl/DateTimeFormat2Test.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,7 @@ public void format_ar_qa() throws Exception {
433433
* @throws Exception if the test fails
434434
*/
435435
@Test
436-
@Alerts(DEFAULT = "\u0661\u0667\u200f/\u0662\u200f/\u0661\u0664\u0663\u0665 \u0647\u0640",
437-
FF = "\u0662\u0660\u200f/\u0661\u0662\u200f/\u0662\u0660\u0661\u0663",
438-
FF_ESR = "\u0662\u0660\u200f/\u0661\u0662\u200f/\u0662\u0660\u0661\u0663")
436+
@Alerts("\u0662\u0660\u200f/\u0661\u0662\u200f/\u0662\u0660\u0661\u0663")
439437
public void format_ar_sa() throws Exception {
440438
test("new Intl.DateTimeFormat('ar-SA').format(date)");
441439
}

src/test/java/org/htmlunit/javascript/host/intl/NumberFormat2Test.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,7 @@ public void format_en_us() throws Exception {
582582
* @throws Exception if the test fails
583583
*/
584584
@Test
585-
@Alerts(DEFAULT = "31\u00a0415,927",
586-
CHROME = "31,415.927",
587-
EDGE = "31,415.927")
585+
@Alerts("31\u00a0415,927")
588586
public void format_en_za() throws Exception {
589587
test("new Intl.NumberFormat('en-ZA').format(number)");
590588
}

0 commit comments

Comments
 (0)