From d258fcd3ba1ec02c33d151b721ac1c73cddc853b Mon Sep 17 00:00:00 2001 From: Ms2ger <Ms2ger@igalia.com> Date: Fri, 6 Jul 2018 12:23:26 +0200 Subject: [PATCH] Add a test for Intl.Segmenter.prototype[@@toStringTag]. This was added to the specification in https://github.com/tc39/proposal-intl-segmenter/pull/29. --- .../prototype/toStringTag/toStringTag.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/intl402/Segmenter/prototype/toStringTag/toStringTag.js diff --git a/test/intl402/Segmenter/prototype/toStringTag/toStringTag.js b/test/intl402/Segmenter/prototype/toStringTag/toStringTag.js new file mode 100644 index 0000000000..ec1b084777 --- /dev/null +++ b/test/intl402/Segmenter/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.Segmenter.prototype-@@tostringtag +description: > + Checks the @@toStringTag property of the Segmenter prototype object. +info: | + Intl.Segmenter.prototype[ @@toStringTag ] + + The initial value of the @@toStringTag property is the string value "Intl.Segmenter". + + This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [Intl.Segmenter, Symbol.toStringTag] +---*/ + +verifyProperty(Intl.Segmenter.prototype, Symbol.toStringTag, { + value: "Intl.Segmenter", + writable: false, + enumerable: false, + configurable: true, +}); -- GitLab