mirror of https://github.com/tc39/test262.git
Update property-descriptor tests to use verifyProperty
This commit is contained in:
parent
c9ef958d01
commit
91460f90de
|
@ -5,10 +5,11 @@
|
||||||
es5id: 10.2.1
|
es5id: 10.2.1
|
||||||
description: Tests that Intl.Collator.prototype has the required attributes.
|
description: Tests that Intl.Collator.prototype has the required attributes.
|
||||||
author: Norbert Lindenberg
|
author: Norbert Lindenberg
|
||||||
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var desc = Object.getOwnPropertyDescriptor(Intl.Collator, "prototype");
|
verifyProperty(Intl.Collator, "prototype", {
|
||||||
assert.notSameValue(desc, undefined, "Intl.Collator.prototype is not defined.");
|
writable: false,
|
||||||
assert.sameValue(desc.writable, false, "Intl.Collator.prototype must not be writable.");
|
enumerable: false,
|
||||||
assert.sameValue(desc.enumerable, false, "Intl.Collator.prototype must not be enumerable.");
|
configurable: false,
|
||||||
assert.sameValue(desc.configurable, false, "Intl.Collator.prototype must not be configurable.");
|
});
|
||||||
|
|
|
@ -7,10 +7,11 @@ description: >
|
||||||
Tests that Intl.DateTimeFormat.prototype has the required
|
Tests that Intl.DateTimeFormat.prototype has the required
|
||||||
attributes.
|
attributes.
|
||||||
author: Norbert Lindenberg
|
author: Norbert Lindenberg
|
||||||
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, "prototype");
|
verifyProperty(Intl.DateTimeFormat, "prototype", {
|
||||||
assert.notSameValue(desc, undefined, "Intl.DateTimeFormat.prototype is not defined.");
|
writable: false,
|
||||||
assert.sameValue(desc.writable, false, "Intl.DateTimeFormat.prototype must not be writable.");
|
enumerable: false,
|
||||||
assert.sameValue(desc.enumerable, false, "Intl.DateTimeFormat.prototype must not be enumerable.");
|
configurable: false,
|
||||||
assert.sameValue(desc.configurable, false, "Intl.DateTimeFormat.prototype must not be configurable.");
|
});
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
es5id: 11.2.1
|
es5id: 11.2.1
|
||||||
description: Tests that Intl.NumberFormat.prototype has the required attributes.
|
description: Tests that Intl.NumberFormat.prototype has the required attributes.
|
||||||
author: Norbert Lindenberg
|
author: Norbert Lindenberg
|
||||||
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, "prototype");
|
verifyProperty(Intl.NumberFormat, "prototype", {
|
||||||
assert.notSameValue(desc, undefined, "Intl.NumberFormat.prototype is not defined.");
|
writable: false,
|
||||||
assert.sameValue(desc.writable, false, "Intl.NumberFormat.prototype must not be writable.");
|
enumerable: false,
|
||||||
assert.sameValue(desc.enumerable, false, "Intl.NumberFormat.prototype must not be enumerable.");
|
configurable: false,
|
||||||
assert.sameValue(desc.configurable, false, "Intl.NumberFormat.prototype must not be configurable.");
|
});
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
esid: sec-properties-of-intl-pluralrules-prototype-object
|
esid: sec-properties-of-intl-pluralrules-prototype-object
|
||||||
description: Tests that Intl.PluralRules.prototype has the required attributes.
|
description: Tests that Intl.PluralRules.prototype has the required attributes.
|
||||||
author: Zibi Braniecki
|
author: Zibi Braniecki
|
||||||
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var desc = Object.getOwnPropertyDescriptor(Intl.PluralRules, "prototype");
|
verifyProperty(Intl.PluralRules, "prototype", {
|
||||||
assert.notSameValue(desc, undefined, "Intl.PluralRules.prototype is not defined.");
|
writable: false,
|
||||||
assert.sameValue(desc.writable, false, "Intl.PluralRules.prototype must not be writable.");
|
enumerable: false,
|
||||||
assert.sameValue(desc.enumerable, false, "Intl.PluralRules.prototype must not be enumerable.");
|
configurable: false,
|
||||||
assert.sameValue(desc.configurable, false, "Intl.PluralRules.prototype must not be configurable.");
|
});
|
||||||
|
|
Loading…
Reference in New Issue