Use verifyProperty in test/intl402/PluralRules tests

This commit is contained in:
André Bargull 2023-09-11 15:43:49 +02:00 committed by Ms2ger
parent ad3f1a6ade
commit f32dc36f3e
10 changed files with 56 additions and 43 deletions

View File

@ -24,6 +24,8 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
verifyNotEnumerable(Intl.PluralRules.prototype, "constructor"); verifyProperty(Intl.PluralRules.prototype, "constructor", {
verifyWritable(Intl.PluralRules.prototype, "constructor"); writable: true,
verifyConfigurable(Intl.PluralRules.prototype, "constructor"); enumerable: false,
configurable: true,
});

View File

@ -24,8 +24,9 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.prototype.resolvedOptions.length, 0); verifyProperty(Intl.PluralRules.prototype.resolvedOptions, "length", {
value: 0,
verifyNotEnumerable(Intl.PluralRules.prototype.resolvedOptions, "length"); writable: false,
verifyNotWritable(Intl.PluralRules.prototype.resolvedOptions, "length"); enumerable: false,
verifyConfigurable(Intl.PluralRules.prototype.resolvedOptions, "length"); configurable: true,
});

View File

@ -8,8 +8,9 @@ author: Zibi Braniecki
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.prototype.resolvedOptions.name, "resolvedOptions"); verifyProperty(Intl.PluralRules.prototype.resolvedOptions, "name", {
value: "resolvedOptions",
verifyNotEnumerable(Intl.PluralRules.prototype.resolvedOptions, "name"); writable: false,
verifyNotWritable(Intl.PluralRules.prototype.resolvedOptions, "name"); enumerable: false,
verifyConfigurable(Intl.PluralRules.prototype.resolvedOptions, "name"); configurable: true,
});

View File

@ -24,6 +24,8 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
verifyNotEnumerable(Intl.PluralRules.prototype, "resolvedOptions"); verifyProperty(Intl.PluralRules.prototype, "resolvedOptions", {
verifyWritable(Intl.PluralRules.prototype, "resolvedOptions"); writable: true,
verifyConfigurable(Intl.PluralRules.prototype, "resolvedOptions"); enumerable: false,
configurable: true,
});

View File

@ -24,8 +24,9 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.prototype.select.length, 1); verifyProperty(Intl.PluralRules.prototype.select, "length", {
value: 1,
verifyNotEnumerable(Intl.PluralRules.prototype.select, "length"); writable: false,
verifyNotWritable(Intl.PluralRules.prototype.select, "length"); enumerable: false,
verifyConfigurable(Intl.PluralRules.prototype.select, "length"); configurable: true,
});

View File

@ -8,10 +8,9 @@ author: Zibi Braniecki
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.prototype.select.name, 'select', verifyProperty(Intl.PluralRules.prototype.select, "name", {
'The value of `Intl.PluralRules.prototype.select.name` is `"select"`' value: "select",
); writable: false,
enumerable: false,
verifyNotEnumerable(Intl.PluralRules.prototype.select, 'name'); configurable: true,
verifyNotWritable(Intl.PluralRules.prototype.select, 'name'); });
verifyConfigurable(Intl.PluralRules.prototype.select, 'name');

View File

@ -24,6 +24,8 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
verifyNotEnumerable(Intl.PluralRules.prototype, "select"); verifyProperty(Intl.PluralRules.prototype, "select", {
verifyWritable(Intl.PluralRules.prototype, "select"); writable: true,
verifyConfigurable(Intl.PluralRules.prototype, "select"); enumerable: false,
configurable: true,
});

View File

@ -24,8 +24,9 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.supportedLocalesOf.length, 1); verifyProperty(Intl.PluralRules.supportedLocalesOf, "length", {
value: 1,
verifyNotEnumerable(Intl.PluralRules.supportedLocalesOf, "length"); writable: false,
verifyNotWritable(Intl.PluralRules.supportedLocalesOf, "length"); enumerable: false,
verifyConfigurable(Intl.PluralRules.supportedLocalesOf, "length"); configurable: true,
});

View File

@ -7,8 +7,10 @@ description: Tests that Intl.PluralRules.supportedLocalesOf.name is "supportedLo
author: Zibi Braniecki author: Zibi Braniecki
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
assert.sameValue(Intl.PluralRules.supportedLocalesOf.name, "supportedLocalesOf");
verifyNotEnumerable(Intl.PluralRules.supportedLocalesOf, "name"); verifyProperty(Intl.PluralRules.supportedLocalesOf, "name", {
verifyNotWritable(Intl.PluralRules.supportedLocalesOf, "name"); value: "supportedLocalesOf",
verifyConfigurable(Intl.PluralRules.supportedLocalesOf, "name"); writable: false,
enumerable: false,
configurable: true,
});

View File

@ -24,6 +24,8 @@ info: |
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
verifyNotEnumerable(Intl.PluralRules, "supportedLocalesOf"); verifyProperty(Intl.PluralRules, "supportedLocalesOf", {
verifyWritable(Intl.PluralRules, "supportedLocalesOf"); writable: true,
verifyConfigurable(Intl.PluralRules, "supportedLocalesOf"); enumerable: false,
configurable: true,
});