forked from tc39/test262
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make U+2212 MINUS SIGN an invalid sign character for offset time zone…
… IDs These are the test adjustments corresponding to the normative PR tc39/ecma262#3334 which reached consensus at the June 2024 TC39 meeting.
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
test/intl402/DateTimeFormat/offset-timezone-no-unicode-minus-sign.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2024 Igalia, S.L. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
/*--- | ||
esid: sec-createdatetimeformat | ||
description: > | ||
A valid offset time zone identifier may not include U+2212 MINUS SIGN | ||
---*/ | ||
|
||
// Note: the first character of each of these strings is U+2122 MINUS SIGN | ||
const invalidIDs = [ | ||
'−0900', | ||
'−10:00', | ||
'−05', | ||
]; | ||
invalidIDs.forEach((id) => { | ||
assert.throws(RangeError, () => new Intl.DateTimeFormat("en", { timeZone: id })); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters