diff --git a/test/built-ins/Temporal/Calendar/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/Calendar/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..a1a6b83b46 --- /dev/null +++ b/test/built-ins/Temporal/Calendar/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.calendar.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.Calendar +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.Calendar.prototype, Symbol.toStringTag, { + value: "Temporal.Calendar", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/Duration/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/Duration/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..39e847fc01 --- /dev/null +++ b/test/built-ins/Temporal/Duration/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.duration.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.Duration +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.Duration.prototype, Symbol.toStringTag, { + value: "Temporal.Duration", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/Instant/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/Instant/prototype/toStringTag/prop-desc.js index 90e55d4b64..74a41b0f8b 100644 --- a/test/built-ins/Temporal/Instant/prototype/toStringTag/prop-desc.js +++ b/test/built-ins/Temporal/Instant/prototype/toStringTag/prop-desc.js @@ -8,8 +8,7 @@ includes: [propertyHelper.js] features: [Temporal] ---*/ -const { Instant } = Temporal; -verifyProperty(Instant.prototype, Symbol.toStringTag, { +verifyProperty(Temporal.Instant.prototype, Symbol.toStringTag, { value: "Temporal.Instant", writable: false, enumerable: false, diff --git a/test/built-ins/Temporal/PlainDate/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/PlainDate/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..630833004e --- /dev/null +++ b/test/built-ins/Temporal/PlainDate/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.plaindate.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.PlainDate +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.PlainDate.prototype, Symbol.toStringTag, { + value: "Temporal.PlainDate", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/PlainDateTime/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..a2488d5d42 --- /dev/null +++ b/test/built-ins/Temporal/PlainDateTime/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.plaindatetime.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.PlainDateTime +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.PlainDateTime.prototype, Symbol.toStringTag, { + value: "Temporal.PlainDateTime", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/PlainMonthDay/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/PlainMonthDay/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..bcff288573 --- /dev/null +++ b/test/built-ins/Temporal/PlainMonthDay/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.plainmonthday.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.PlainMonthDay +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.PlainMonthDay.prototype, Symbol.toStringTag, { + value: "Temporal.PlainMonthDay", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/PlainTime/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/PlainTime/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..812873914e --- /dev/null +++ b/test/built-ins/Temporal/PlainTime/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.plaintime.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.PlainTime +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.PlainTime.prototype, Symbol.toStringTag, { + value: "Temporal.PlainTime", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/PlainYearMonth/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/PlainYearMonth/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..1dfe73a8d9 --- /dev/null +++ b/test/built-ins/Temporal/PlainYearMonth/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.plainyearmonth.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.PlainYearMonth +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.PlainYearMonth.prototype, Symbol.toStringTag, { + value: "Temporal.PlainYearMonth", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/TimeZone/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/TimeZone/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..2aeae3722c --- /dev/null +++ b/test/built-ins/Temporal/TimeZone/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.timezone.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.TimeZone +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.TimeZone.prototype, Symbol.toStringTag, { + value: "Temporal.TimeZone", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/toStringTag/prop-desc.js b/test/built-ins/Temporal/ZonedDateTime/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000..72fadda4ef --- /dev/null +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/toStringTag/prop-desc.js @@ -0,0 +1,16 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.zoneddatetime.prototype-@@tostringtag +description: The @@toStringTag property of Temporal.ZonedDateTime +includes: [propertyHelper.js] +features: [Temporal] +---*/ + +verifyProperty(Temporal.ZonedDateTime.prototype, Symbol.toStringTag, { + value: "Temporal.ZonedDateTime", + writable: false, + enumerable: false, + configurable: true, +});