From 46a0ff6e41261a7846f78a38e08b5323bd3f07f8 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Jul 2018 12:06:22 +0200 Subject: [PATCH] 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, +});