mirror of https://github.com/tc39/test262.git
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
|
||||
json-superset
|
||||
|
||||
# Intl.ListFormat
|
||||
# https://github.com/tc39/proposal-intl-list-format
|
||||
Intl.ListFormat
|
||||
|
||||
# Intl.Locale
|
||||
# https://github.com/tc39/proposal-intl-locale
|
||||
Intl.Locale
|
||||
|
|
|
@ -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]");
|
|
@ -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…
Reference in New Issue