Changeset 283446 in webkit
- Timestamp:
- Oct 2, 2021, 2:24:31 PM (5 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
stress/intl-datetimeformat.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r283435 r283446 1 2021-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 1 10 2021-10-01 Commit Queue <commit-queue@webkit.org> 2 11 -
trunk/JSTests/stress/intl-datetimeformat.js
r281513 r283446 760 760 shouldBe(new Date(0).toLocaleTimeString('zh-Hans-CN', { timeZone: 'UTC', numberingSystem: 'hanidec', hour: "numeric", minute: "numeric", second: "numeric", fractionalSecondDigits: 2 }), "上午一二:〇〇:〇〇.〇〇"); 761 761 } 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.