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]
|
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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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');
|
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue