calendar-string.js (557B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2022 Igalia, S.L. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-temporal.plainyearmonth.constructor 7 description: A calendar ID is valid input for Calendar 8 features: [Temporal] 9 ---*/ 10 11 const arg = "iso8601"; 12 13 const result = new Temporal.PlainYearMonth(2000, 5, arg, 1); 14 assert.sameValue(result.calendarId, "iso8601", `Calendar created from string "${arg}"`); 15 16 reportCompare(0, 0);