Title: [283446] trunk/JSTests
Revision
283446
Author
[email protected]
Date
2021-10-02 14:24:31 -0700 (Sat, 02 Oct 2021)

Log Message

Unreviewed, add reported test to our stress tests
https://bugs.webkit.org/show_bug.cgi?id=230827

While we cannot reproduce the issue successfully, adding it to our stress tests to ensure that this will never happen.

* stress/intl-datetimeformat.js:

Modified Paths

Diff

Modified: trunk/JSTests/ChangeLog (283445 => 283446)


--- trunk/JSTests/ChangeLog	2021-10-02 20:30:11 UTC (rev 283445)
+++ trunk/JSTests/ChangeLog	2021-10-02 21:24:31 UTC (rev 283446)
@@ -1,3 +1,12 @@
+2021-10-02  Yusuke Suzuki  <[email protected]>
+
+        Unreviewed, add reported test to our stress tests
+        https://bugs.webkit.org/show_bug.cgi?id=230827
+
+        While we cannot reproduce the issue successfully, adding it to our stress tests to ensure that this will never happen.
+
+        * stress/intl-datetimeformat.js:
+
 2021-10-01  Commit Queue  <[email protected]>
 
         Unreviewed, reverting r283293.

Modified: trunk/JSTests/stress/intl-datetimeformat.js (283445 => 283446)


--- trunk/JSTests/stress/intl-datetimeformat.js	2021-10-02 20:30:11 UTC (rev 283445)
+++ trunk/JSTests/stress/intl-datetimeformat.js	2021-10-02 21:24:31 UTC (rev 283446)
@@ -759,3 +759,10 @@
 {
     shouldBe(new Date(0).toLocaleTimeString('zh-Hans-CN', { timeZone: 'UTC', numberingSystem: 'hanidec', hour: "numeric", minute: "numeric", second: "numeric", fractionalSecondDigits: 2 }), "上午一二:〇〇:〇〇.〇〇");
 }
+{
+    const dtf = new Intl.DateTimeFormat('en-AU', { timeZone: 'Australia/Melbourne', year: 'numeric' });
+    const date = new Date(2021, 9, 2);
+    const parts = dtf.formatToParts(date);
+    const year = parts.find(part => part.type === 'year')
+    shouldBe(year.value, "2021")
+}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to