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]
---*/
verifyNotEnumerable(Intl.PluralRules.prototype, "constructor");
verifyWritable(Intl.PluralRules.prototype, "constructor");
verifyConfigurable(Intl.PluralRules.prototype, "constructor");
verifyProperty(Intl.PluralRules.prototype, "constructor", {
writable: true,
enumerable: false,
configurable: true,
});

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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