Merge pull request #1624 from Ms2ger/ListFormat-@@toStringTag

Add a test for Intl.ListFormat.prototype[@@toStringTag].
This commit is contained in:
Rick Waldron 2018-07-06 14:44:51 -04:00 committed by GitHub
commit 221f212903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 0 deletions

View File

@ -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

View 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]");

View 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,
});