1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-temporal.plainmonthday.from
7 description: Annotation keys are lowercase-only
11 const invalidStrings = [
12 ["1970-01-01T00:00[U-CA=iso8601]", "invalid capitalized key"],
13 ["1970-01-01T00:00[u-CA=iso8601]", "invalid partially-capitalized key"],
14 ["1970-01-01T00:00[FOO=bar]", "invalid capitalized unrecognized key"],
17 invalidStrings.forEach(([arg, descr]) => {
20 () => Temporal.PlainMonthDay.from(arg),
21 `annotation keys must be lowercase: ${arg} - ${descr}`