diff --git a/test/intl402/Collator/length.js b/test/intl402/Collator/length.js index 7ac33bce9e..c7c80a6d20 100644 --- a/test/intl402/Collator/length.js +++ b/test/intl402/Collator/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.length, 0); - -verifyNotEnumerable(Intl.Collator, "length"); -verifyNotWritable(Intl.Collator, "length"); -verifyConfigurable(Intl.Collator, "length"); +verifyProperty(Intl.Collator, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/name.js b/test/intl402/Collator/name.js index f375b86c67..4435c88d2a 100644 --- a/test/intl402/Collator/name.js +++ b/test/intl402/Collator/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.name, "Collator"); - -verifyNotEnumerable(Intl.Collator, "name"); -verifyNotWritable(Intl.Collator, "name"); -verifyConfigurable(Intl.Collator, "name"); +verifyProperty(Intl.Collator, "name", { + value: "Collator", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prop-desc.js b/test/intl402/Collator/prop-desc.js index 9eb65080d4..c7ce97ca88 100644 --- a/test/intl402/Collator/prop-desc.js +++ b/test/intl402/Collator/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl, "Collator"); -verifyWritable(Intl, "Collator"); -verifyConfigurable(Intl, "Collator"); +verifyProperty(Intl, "Collator", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/compare/compare-function-length.js b/test/intl402/Collator/prototype/compare/compare-function-length.js index 2860bd2bc3..0966cba1ee 100644 --- a/test/intl402/Collator/prototype/compare/compare-function-length.js +++ b/test/intl402/Collator/prototype/compare/compare-function-length.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var compareFn = new Intl.Collator().compare; -assert.sameValue(compareFn.length, 2); - -verifyNotEnumerable(compareFn, "length"); -verifyNotWritable(compareFn, "length"); -verifyConfigurable(compareFn, "length"); +verifyProperty(compareFn, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/compare/length.js b/test/intl402/Collator/prototype/compare/length.js index b17ba62ccd..8a3eb8787f 100644 --- a/test/intl402/Collator/prototype/compare/length.js +++ b/test/intl402/Collator/prototype/compare/length.js @@ -26,8 +26,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare"); -assert.sameValue(desc.get.length, 0); - -verifyNotEnumerable(desc.get, "length"); -verifyNotWritable(desc.get, "length"); -verifyConfigurable(desc.get, "length"); +verifyProperty(desc.get, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/compare/name.js b/test/intl402/Collator/prototype/compare/name.js index 4b32e659cb..2833fa5531 100644 --- a/test/intl402/Collator/prototype/compare/name.js +++ b/test/intl402/Collator/prototype/compare/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare"); -assert.sameValue(desc.get.name, "get compare"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get compare", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/compare/prop-desc.js b/test/intl402/Collator/prototype/compare/prop-desc.js index 7544b998a8..030ceab981 100644 --- a/test/intl402/Collator/prototype/compare/prop-desc.js +++ b/test/intl402/Collator/prototype/compare/prop-desc.js @@ -31,5 +31,7 @@ var desc = Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare"); assert.sameValue(desc.set, undefined); assert.sameValue(typeof desc.get, "function"); -verifyNotEnumerable(Intl.Collator.prototype, "compare"); -verifyConfigurable(Intl.Collator.prototype, "compare"); +verifyProperty(Intl.Collator.prototype, "compare", { + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/constructor/prop-desc.js b/test/intl402/Collator/prototype/constructor/prop-desc.js index 2bda7b943f..30f6d30a64 100644 --- a/test/intl402/Collator/prototype/constructor/prop-desc.js +++ b/test/intl402/Collator/prototype/constructor/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.Collator.prototype, "constructor"); -verifyWritable(Intl.Collator.prototype, "constructor"); -verifyConfigurable(Intl.Collator.prototype, "constructor"); +verifyProperty(Intl.Collator.prototype, "constructor", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/resolvedOptions/length.js b/test/intl402/Collator/prototype/resolvedOptions/length.js index 9307dc5041..2b78aa45fc 100644 --- a/test/intl402/Collator/prototype/resolvedOptions/length.js +++ b/test/intl402/Collator/prototype/resolvedOptions/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.prototype.resolvedOptions.length, 0); - -verifyNotEnumerable(Intl.Collator.prototype.resolvedOptions, "length"); -verifyNotWritable(Intl.Collator.prototype.resolvedOptions, "length"); -verifyConfigurable(Intl.Collator.prototype.resolvedOptions, "length"); +verifyProperty(Intl.Collator.prototype.resolvedOptions, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/resolvedOptions/name.js b/test/intl402/Collator/prototype/resolvedOptions/name.js index eb8455cf75..dca591a4cc 100644 --- a/test/intl402/Collator/prototype/resolvedOptions/name.js +++ b/test/intl402/Collator/prototype/resolvedOptions/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.prototype.resolvedOptions.name, "resolvedOptions"); - -verifyNotEnumerable(Intl.Collator.prototype.resolvedOptions, "name"); -verifyNotWritable(Intl.Collator.prototype.resolvedOptions, "name"); -verifyConfigurable(Intl.Collator.prototype.resolvedOptions, "name"); +verifyProperty(Intl.Collator.prototype.resolvedOptions, "name", { + value: "resolvedOptions", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/prototype/resolvedOptions/prop-desc.js b/test/intl402/Collator/prototype/resolvedOptions/prop-desc.js index d7e9974941..bb77dc47c8 100644 --- a/test/intl402/Collator/prototype/resolvedOptions/prop-desc.js +++ b/test/intl402/Collator/prototype/resolvedOptions/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.Collator.prototype, "resolvedOptions"); -verifyWritable(Intl.Collator.prototype, "resolvedOptions"); -verifyConfigurable(Intl.Collator.prototype, "resolvedOptions"); +verifyProperty(Intl.Collator.prototype, "resolvedOptions", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/supportedLocalesOf/length.js b/test/intl402/Collator/supportedLocalesOf/length.js index b60708f254..5d31b8c0cd 100644 --- a/test/intl402/Collator/supportedLocalesOf/length.js +++ b/test/intl402/Collator/supportedLocalesOf/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.supportedLocalesOf.length, 1); - -verifyNotEnumerable(Intl.Collator.supportedLocalesOf, "length"); -verifyNotWritable(Intl.Collator.supportedLocalesOf, "length"); -verifyConfigurable(Intl.Collator.supportedLocalesOf, "length"); +verifyProperty(Intl.Collator.supportedLocalesOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/supportedLocalesOf/name.js b/test/intl402/Collator/supportedLocalesOf/name.js index 3782cd7405..2c52eb40c0 100644 --- a/test/intl402/Collator/supportedLocalesOf/name.js +++ b/test/intl402/Collator/supportedLocalesOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.Collator.supportedLocalesOf.name, "supportedLocalesOf"); - -verifyNotEnumerable(Intl.Collator.supportedLocalesOf, "name"); -verifyNotWritable(Intl.Collator.supportedLocalesOf, "name"); -verifyConfigurable(Intl.Collator.supportedLocalesOf, "name"); +verifyProperty(Intl.Collator.supportedLocalesOf, "name", { + value: "supportedLocalesOf", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/Collator/supportedLocalesOf/prop-desc.js b/test/intl402/Collator/supportedLocalesOf/prop-desc.js index c2ad5613af..3d3bd3a9b6 100644 --- a/test/intl402/Collator/supportedLocalesOf/prop-desc.js +++ b/test/intl402/Collator/supportedLocalesOf/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.Collator, "supportedLocalesOf"); -verifyWritable(Intl.Collator, "supportedLocalesOf"); -verifyConfigurable(Intl.Collator, "supportedLocalesOf"); +verifyProperty(Intl.Collator, "supportedLocalesOf", { + writable: true, + enumerable: false, + configurable: true, +});