diff --git a/test/intl402/Intl/getCanonicalLocales/descriptor.js b/test/intl402/Intl/getCanonicalLocales/descriptor.js index 1cf400ce21dae34ab52c532057991fea479d1918..e1f32322584fdba1f0e7ac64a81a5c0e5e08fbd1 100644 --- a/test/intl402/Intl/getCanonicalLocales/descriptor.js +++ b/test/intl402/Intl/getCanonicalLocales/descriptor.js @@ -15,6 +15,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl, "getCanonicalLocales"); -verifyWritable(Intl, "getCanonicalLocales"); -verifyConfigurable(Intl, "getCanonicalLocales"); +verifyProperty(Intl, 'getCanonicalLocales', { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Intl/getCanonicalLocales/duplicates.js b/test/intl402/Intl/getCanonicalLocales/duplicates.js index 74fc6459c85d0f85d0c229507897862e57b4eedc..cff587ca3cdb0cbc19d6c0b6601ecbec0f37412b 100644 --- a/test/intl402/Intl/getCanonicalLocales/duplicates.js +++ b/test/intl402/Intl/getCanonicalLocales/duplicates.js @@ -15,5 +15,5 @@ assert(compareArray( Intl.getCanonicalLocales( ['ab-cd', 'ff', 'de-rt', 'ab-Cd']), ['ab-CD', 'ff', 'de-RT'])); -var locales = Intl.getCanonicalLocales(["en-US", "en-US"]); +var locales = Intl.getCanonicalLocales(['en-US', 'en-US']); assert(compareArray(locales, ['en-US']), 'en-US'); diff --git a/test/intl402/Number/prototype/toLocaleString/length.js b/test/intl402/Number/prototype/toLocaleString/length.js index ff1538355ae2d698e85126af91759a3f4b75f090..48571eaaa6067463e3cbfcf7fdf4e3e451574734 100644 --- a/test/intl402/Number/prototype/toLocaleString/length.js +++ b/test/intl402/Number/prototype/toLocaleString/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Number.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(Number.prototype.toLocaleString, "length"); -verifyNotWritable(Number.prototype.toLocaleString, "length"); -verifyConfigurable(Number.prototype.toLocaleString, "length"); +verifyProperty(Number.prototype.toLocaleString, 'length', { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/NumberFormat/length.js b/test/intl402/NumberFormat/length.js index e46a596ef124fa6fc72d666e2e0653a6615688ec..647a1aca97d3b195d8cab525fad00f56bae7f25b 100644 --- a/test/intl402/NumberFormat/length.js +++ b/test/intl402/NumberFormat/length.js @@ -29,3 +29,10 @@ assert.sameValue(Intl.NumberFormat.length, 0); verifyNotEnumerable(Intl.NumberFormat, "length"); verifyNotWritable(Intl.NumberFormat, "length"); verifyConfigurable(Intl.NumberFormat, "length"); + +verifyProperty(Intl.NumberFormat, 'length', { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/NumberFormat/name.js b/test/intl402/NumberFormat/name.js index 5e9593136696b73419e9cd8ce6a9a338fe55cd7c..41c0fcf1994ebe1f5aec290f91f1c211d7601244 100644 --- a/test/intl402/NumberFormat/name.js +++ b/test/intl402/NumberFormat/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.NumberFormat.name, "NumberFormat"); - -verifyNotEnumerable(Intl.NumberFormat, "name"); -verifyNotWritable(Intl.NumberFormat, "name"); -verifyConfigurable(Intl.NumberFormat, "name"); +verifyProperty(Intl.NumberFormat, 'name', { + value: 'NumberFormat', + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/NumberFormat/prop-desc.js b/test/intl402/NumberFormat/prop-desc.js index e5878a70e9602dd9e7e1746c3fb16fc2395900ee..81ed2e5a2b60b2a80b505f9d276f0d3696f42b39 100644 --- a/test/intl402/NumberFormat/prop-desc.js +++ b/test/intl402/NumberFormat/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl, "NumberFormat"); -verifyWritable(Intl, "NumberFormat"); -verifyConfigurable(Intl, "NumberFormat"); +verifyProperty(Intl, 'NumberFormat', { + writable: true, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/PluralRules/length.js b/test/intl402/PluralRules/length.js index 9f701deff438b9b1b3b564092bd17edca2354120..33adaf70d1509ff88986a2cdb6cccc7689b1a6cf 100644 --- a/test/intl402/PluralRules/length.js +++ b/test/intl402/PluralRules/length.js @@ -8,8 +8,9 @@ author: Zibi Braniecki includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.PluralRules.length, 0); - -verifyNotEnumerable(Intl.PluralRules, "length"); -verifyNotWritable(Intl.PluralRules, "length"); -verifyConfigurable(Intl.PluralRules, "length"); +verifyProperty(Intl.PluralRules, 'length', { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/PluralRules/name.js b/test/intl402/PluralRules/name.js index c5126aa88fa6ca18c915eb7cdcb0525730b85949..075d349dc87dc9b1f470494c3d6d068022776768 100644 --- a/test/intl402/PluralRules/name.js +++ b/test/intl402/PluralRules/name.js @@ -8,8 +8,9 @@ author: Zibi Braniecki includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.PluralRules.name, "PluralRules"); - -verifyNotEnumerable(Intl.PluralRules, "name"); -verifyNotWritable(Intl.PluralRules, "name"); -verifyConfigurable(Intl.PluralRules, "name"); +verifyProperty(Intl.PluralRules, 'name', { + value: 'PluralRules', + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/intl402/PluralRules/prop-desc.js b/test/intl402/PluralRules/prop-desc.js new file mode 100644 index 0000000000000000000000000000000000000000..e0597da28ebc1fa0a9c5e56adaab49a6bc7d5ccd --- /dev/null +++ b/test/intl402/PluralRules/prop-desc.js @@ -0,0 +1,31 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-Intl.PluralRules +description: > + "PluralRules" property of Intl. +info: | + Intl.PluralRules (...) + + 7 Requirements for Standard Built-in ECMAScript Objects + + Unless specified otherwise in this document, the objects, functions, and constructors + described in this standard are subject to the generic requirements and restrictions + specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language + Specification, 9th edition, clause 17, or successor. + + 17 ECMAScript Standard Built-in Objects: + + Every other data property described in clauses 18 through 26 and in Annex B.2 has the + attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } + unless otherwise specified. + +includes: [propertyHelper.js] +---*/ + +verifyProperty(Intl, 'PluralRules', { + writable: true, + enumerable: false, + configurable: true +});