mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 21:45:04 +02:00
Temporal: Test @@toStringTag properties.
This commit is contained in:
parent
494b678cc5
commit
912559f683
16
test/built-ins/Temporal/Calendar/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/Calendar/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/Duration/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/Duration/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
@ -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,
|
||||
|
16
test/built-ins/Temporal/PlainDate/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/PlainDate/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/PlainDateTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/PlainDateTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/PlainMonthDay/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/PlainMonthDay/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/PlainTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/PlainTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/PlainYearMonth/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/PlainYearMonth/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/TimeZone/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/TimeZone/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
16
test/built-ins/Temporal/ZonedDateTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
16
test/built-ins/Temporal/ZonedDateTime/prototype/toStringTag/prop-desc.js
vendored
Normal file
@ -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,
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user