⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283446 in webkit


Ignore:
Timestamp:
Oct 2, 2021, 2:24:31 PM (5 years ago)
Author:
ysuzuki@apple.com
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:
Location:
trunk/JSTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r283435 r283446  
     12021-10-02  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Unreviewed, add reported test to our stress tests
     4        https://bugs.webkit.org/show_bug.cgi?id=230827
     5
     6        While we cannot reproduce the issue successfully, adding it to our stress tests to ensure that this will never happen.
     7
     8        * stress/intl-datetimeformat.js:
     9
    1102021-10-01  Commit Queue  <commit-queue@webkit.org>
    211
  • trunk/JSTests/stress/intl-datetimeformat.js

    r281513 r283446  
    760760    shouldBe(new Date(0).toLocaleTimeString('zh-Hans-CN', { timeZone: 'UTC', numberingSystem: 'hanidec', hour: "numeric", minute: "numeric", second: "numeric", fractionalSecondDigits: 2 }), "上午一二:〇〇:〇〇.〇〇");
    761761}
     762{
     763    const dtf = new Intl.DateTimeFormat('en-AU', { timeZone: 'Australia/Melbourne', year: 'numeric' });
     764    const date = new Date(2021, 9, 2);
     765    const parts = dtf.formatToParts(date);
     766    const year = parts.find(part => part.type === 'year')
     767    shouldBe(year.value, "2021")
     768}
Note: See TracChangeset for help on using the changeset viewer.