mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Merge pull request #1624 from Ms2ger/ListFormat-@@toStringTag
Add a test for Intl.ListFormat.prototype[@@toStringTag].
This commit is contained in:
commit
221f212903
@ -85,6 +85,10 @@ Symbol.prototype.description
|
|||||||
# https://github.com/tc39/proposal-json-superset
|
# https://github.com/tc39/proposal-json-superset
|
||||||
json-superset
|
json-superset
|
||||||
|
|
||||||
|
# Intl.ListFormat
|
||||||
|
# https://github.com/tc39/proposal-intl-list-format
|
||||||
|
Intl.ListFormat
|
||||||
|
|
||||||
# Intl.Locale
|
# Intl.Locale
|
||||||
# https://github.com/tc39/proposal-intl-locale
|
# https://github.com/tc39/proposal-intl-locale
|
||||||
Intl.Locale
|
Intl.Locale
|
||||||
|
16
test/intl402/ListFormat/prototype/toStringTag/toString.js
vendored
Normal file
16
test/intl402/ListFormat/prototype/toStringTag/toString.js
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-intl.ListFormat.prototype-@@tostringtag
|
||||||
|
description: >
|
||||||
|
Checks Object.prototype.toString with Intl.ListFormat objects.
|
||||||
|
info: |
|
||||||
|
Intl.ListFormat.prototype[ @@toStringTag ]
|
||||||
|
|
||||||
|
The initial value of the @@toStringTag property is the string value "Intl.ListFormat".
|
||||||
|
features: [Intl.ListFormat]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(Object.prototype.toString.call(Intl.ListFormat.prototype), "[object Intl.ListFormat]");
|
||||||
|
assert.sameValue(Object.prototype.toString.call(new Intl.ListFormat()), "[object Intl.ListFormat]");
|
23
test/intl402/ListFormat/prototype/toStringTag/toStringTag.js
vendored
Normal file
23
test/intl402/ListFormat/prototype/toStringTag/toStringTag.js
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-intl.ListFormat.prototype-@@tostringtag
|
||||||
|
description: >
|
||||||
|
Checks the @@toStringTag property of the ListFormat prototype object.
|
||||||
|
info: |
|
||||||
|
Intl.ListFormat.prototype[ @@toStringTag ]
|
||||||
|
|
||||||
|
The initial value of the @@toStringTag property is the string value "Intl.ListFormat".
|
||||||
|
|
||||||
|
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
|
includes: [propertyHelper.js]
|
||||||
|
features: [Intl.ListFormat, Symbol.toStringTag]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
verifyProperty(Intl.ListFormat.prototype, Symbol.toStringTag, {
|
||||||
|
value: "Intl.ListFormat",
|
||||||
|
writable: false,
|
||||||
|
enumerable: false,
|
||||||
|
configurable: true,
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user