From 91d22be7813965ddc2645d63a5302e2aa1616084 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Jul 2018 12:03:39 +0200 Subject: [PATCH 1/3] Add the Intl.ListFormat feature. --- features.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features.txt b/features.txt index e9ca739503..90f4c8e7a2 100644 --- a/features.txt +++ b/features.txt @@ -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 From 46a0ff6e41261a7846f78a38e08b5323bd3f07f8 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Jul 2018 12:06:22 +0200 Subject: [PATCH 2/3] Add a test for Intl.ListFormat.prototype[@@toStringTag]. The specification changed in https://github.com/tc39/proposal-intl-list-format/pull/13. --- .../prototype/toStringTag/toStringTag.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/intl402/ListFormat/prototype/toStringTag/toStringTag.js diff --git a/test/intl402/ListFormat/prototype/toStringTag/toStringTag.js b/test/intl402/ListFormat/prototype/toStringTag/toStringTag.js new file mode 100644 index 0000000000..cccd8ca0e5 --- /dev/null +++ b/test/intl402/ListFormat/prototype/toStringTag/toStringTag.js @@ -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, +}); From b46778dc0fd5b10cf111baac6ed49e64e4fa8b1e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Jul 2018 12:31:16 +0200 Subject: [PATCH 3/3] Add a test for Object.prototype.toString with Intl.ListFormat objects. --- .../ListFormat/prototype/toStringTag/toString.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/intl402/ListFormat/prototype/toStringTag/toString.js diff --git a/test/intl402/ListFormat/prototype/toStringTag/toString.js b/test/intl402/ListFormat/prototype/toStringTag/toString.js new file mode 100644 index 0000000000..dc931a866e --- /dev/null +++ b/test/intl402/ListFormat/prototype/toStringTag/toString.js @@ -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]");