basic.js (626B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2021 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.plaindate 7 description: Basic tests for the PlainDate constructor. 8 includes: [temporalHelpers.js] 9 features: [Temporal] 10 ---*/ 11 12 const plainDate = new Temporal.PlainDate(2020, 12, 24, "iso8601"); 13 TemporalHelpers.assertPlainDate(plainDate, 2020, 12, "M12", 24, "with string"); 14 assert.sameValue(plainDate.calendarId, "iso8601", "calendar string is iso8601"); 15 16 reportCompare(0, 0);