mirror of https://github.com/tc39/test262.git
Use verifyProperty in test/intl402/PluralRules tests
This commit is contained in:
parent
ad3f1a6ade
commit
f32dc36f3e
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue