diff --git a/test/intl402/DateTimeFormat/length.js b/test/intl402/DateTimeFormat/length.js index 7eb21739af..34cc844e7e 100644 --- a/test/intl402/DateTimeFormat/length.js +++ b/test/intl402/DateTimeFormat/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.length, 0); - -verifyNotEnumerable(Intl.DateTimeFormat, "length"); -verifyNotWritable(Intl.DateTimeFormat, "length"); -verifyConfigurable(Intl.DateTimeFormat, "length"); +verifyProperty(Intl.DateTimeFormat, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/name.js b/test/intl402/DateTimeFormat/name.js index b77f1f6096..322e0a5a2b 100644 --- a/test/intl402/DateTimeFormat/name.js +++ b/test/intl402/DateTimeFormat/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.name, "DateTimeFormat"); - -verifyNotEnumerable(Intl.DateTimeFormat, "name"); -verifyNotWritable(Intl.DateTimeFormat, "name"); -verifyConfigurable(Intl.DateTimeFormat, "name"); +verifyProperty(Intl.DateTimeFormat, "name", { + value: "DateTimeFormat", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prop-desc.js b/test/intl402/DateTimeFormat/prop-desc.js index a808d1ea11..e25487e6f6 100644 --- a/test/intl402/DateTimeFormat/prop-desc.js +++ b/test/intl402/DateTimeFormat/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl, "DateTimeFormat"); -verifyWritable(Intl, "DateTimeFormat"); -verifyConfigurable(Intl, "DateTimeFormat"); +verifyProperty(Intl, "DateTimeFormat", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/constructor/prop-desc.js b/test/intl402/DateTimeFormat/prototype/constructor/prop-desc.js index a4ec0cccd9..62d841b47d 100644 --- a/test/intl402/DateTimeFormat/prototype/constructor/prop-desc.js +++ b/test/intl402/DateTimeFormat/prototype/constructor/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.DateTimeFormat.prototype, "constructor"); -verifyWritable(Intl.DateTimeFormat.prototype, "constructor"); -verifyConfigurable(Intl.DateTimeFormat.prototype, "constructor"); +verifyProperty(Intl.DateTimeFormat.prototype, "constructor", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/format/format-function-length.js b/test/intl402/DateTimeFormat/prototype/format/format-function-length.js index e7af4121c6..9f62f8cf0f 100644 --- a/test/intl402/DateTimeFormat/prototype/format/format-function-length.js +++ b/test/intl402/DateTimeFormat/prototype/format/format-function-length.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var formatFn = new Intl.DateTimeFormat().format; -assert.sameValue(formatFn.length, 1); - -verifyNotEnumerable(formatFn, "length"); -verifyNotWritable(formatFn, "length"); -verifyConfigurable(formatFn, "length"); +verifyProperty(formatFn, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/format/length.js b/test/intl402/DateTimeFormat/prototype/format/length.js index 8c36d0d26a..f83b49f74f 100644 --- a/test/intl402/DateTimeFormat/prototype/format/length.js +++ b/test/intl402/DateTimeFormat/prototype/format/length.js @@ -26,8 +26,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format"); -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/DateTimeFormat/prototype/format/name.js b/test/intl402/DateTimeFormat/prototype/format/name.js index 010ff606c8..5349cfe3d7 100644 --- a/test/intl402/DateTimeFormat/prototype/format/name.js +++ b/test/intl402/DateTimeFormat/prototype/format/name.js @@ -21,8 +21,9 @@ includes: [propertyHelper.js] var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format"); -assert.sameValue(desc.get.name, "get format"); - -verifyNotEnumerable(desc.get, "name"); -verifyNotWritable(desc.get, "name"); -verifyConfigurable(desc.get, "name"); +verifyProperty(desc.get, "name", { + value: "get format", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/format/prop-desc.js b/test/intl402/DateTimeFormat/prototype/format/prop-desc.js index ff12c9f511..7d015b1446 100644 --- a/test/intl402/DateTimeFormat/prototype/format/prop-desc.js +++ b/test/intl402/DateTimeFormat/prototype/format/prop-desc.js @@ -31,5 +31,7 @@ var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "forma assert.sameValue(desc.set, undefined); assert.sameValue(typeof desc.get, "function"); -verifyNotEnumerable(Intl.DateTimeFormat.prototype, "format"); -verifyConfigurable(Intl.DateTimeFormat.prototype, "format"); +verifyProperty(Intl.DateTimeFormat.prototype, "format", { + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/formatToParts/formatToParts.js b/test/intl402/DateTimeFormat/prototype/formatToParts/formatToParts.js index 129da16623..6412d63979 100644 --- a/test/intl402/DateTimeFormat/prototype/formatToParts/formatToParts.js +++ b/test/intl402/DateTimeFormat/prototype/formatToParts/formatToParts.js @@ -12,6 +12,8 @@ assert.sameValue( '`typeof Intl.DateTimeFormat.prototype.formatToParts` is `function`' ); -verifyNotEnumerable(Intl.DateTimeFormat.prototype, 'formatToParts'); -verifyWritable(Intl.DateTimeFormat.prototype, 'formatToParts'); -verifyConfigurable(Intl.DateTimeFormat.prototype, 'formatToParts'); +verifyProperty(Intl.DateTimeFormat.prototype, "formatToParts", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/length.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/length.js index 2ee86de93b..92bab69fb3 100644 --- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/length.js +++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.prototype.resolvedOptions.length, 0); - -verifyNotEnumerable(Intl.DateTimeFormat.prototype.resolvedOptions, "length"); -verifyNotWritable(Intl.DateTimeFormat.prototype.resolvedOptions, "length"); -verifyConfigurable(Intl.DateTimeFormat.prototype.resolvedOptions, "length"); +verifyProperty(Intl.DateTimeFormat.prototype.resolvedOptions, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/name.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/name.js index e41a878524..8925a1b1a1 100644 --- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/name.js +++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.prototype.resolvedOptions.name, "resolvedOptions"); - -verifyNotEnumerable(Intl.DateTimeFormat.prototype.resolvedOptions, "name"); -verifyNotWritable(Intl.DateTimeFormat.prototype.resolvedOptions, "name"); -verifyConfigurable(Intl.DateTimeFormat.prototype.resolvedOptions, "name"); +verifyProperty(Intl.DateTimeFormat.prototype.resolvedOptions, "name", { + value: "resolvedOptions", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/prop-desc.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/prop-desc.js index 06e589405c..8c6dee47b3 100644 --- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/prop-desc.js +++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.DateTimeFormat.prototype, "resolvedOptions"); -verifyWritable(Intl.DateTimeFormat.prototype, "resolvedOptions"); -verifyConfigurable(Intl.DateTimeFormat.prototype, "resolvedOptions"); +verifyProperty(Intl.DateTimeFormat.prototype, "resolvedOptions", { + writable: true, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/supportedLocalesOf/length.js b/test/intl402/DateTimeFormat/supportedLocalesOf/length.js index 0f29d6a0a9..68972d628e 100644 --- a/test/intl402/DateTimeFormat/supportedLocalesOf/length.js +++ b/test/intl402/DateTimeFormat/supportedLocalesOf/length.js @@ -24,8 +24,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.supportedLocalesOf.length, 1); - -verifyNotEnumerable(Intl.DateTimeFormat.supportedLocalesOf, "length"); -verifyNotWritable(Intl.DateTimeFormat.supportedLocalesOf, "length"); -verifyConfigurable(Intl.DateTimeFormat.supportedLocalesOf, "length"); +verifyProperty(Intl.DateTimeFormat.supportedLocalesOf, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/supportedLocalesOf/name.js b/test/intl402/DateTimeFormat/supportedLocalesOf/name.js index 8dc5aa2cce..c34344694f 100644 --- a/test/intl402/DateTimeFormat/supportedLocalesOf/name.js +++ b/test/intl402/DateTimeFormat/supportedLocalesOf/name.js @@ -19,8 +19,9 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(Intl.DateTimeFormat.supportedLocalesOf.name, "supportedLocalesOf"); - -verifyNotEnumerable(Intl.DateTimeFormat.supportedLocalesOf, "name"); -verifyNotWritable(Intl.DateTimeFormat.supportedLocalesOf, "name"); -verifyConfigurable(Intl.DateTimeFormat.supportedLocalesOf, "name"); +verifyProperty(Intl.DateTimeFormat.supportedLocalesOf, "name", { + value: "supportedLocalesOf", + writable: false, + enumerable: false, + configurable: true, +}); diff --git a/test/intl402/DateTimeFormat/supportedLocalesOf/prop-desc.js b/test/intl402/DateTimeFormat/supportedLocalesOf/prop-desc.js index 623d09e490..7508903b23 100644 --- a/test/intl402/DateTimeFormat/supportedLocalesOf/prop-desc.js +++ b/test/intl402/DateTimeFormat/supportedLocalesOf/prop-desc.js @@ -24,6 +24,8 @@ info: | includes: [propertyHelper.js] ---*/ -verifyNotEnumerable(Intl.DateTimeFormat, "supportedLocalesOf"); -verifyWritable(Intl.DateTimeFormat, "supportedLocalesOf"); -verifyConfigurable(Intl.DateTimeFormat, "supportedLocalesOf"); +verifyProperty(Intl.DateTimeFormat, "supportedLocalesOf", { + writable: true, + enumerable: false, + configurable: true, +});