diff --git a/test/intl402/Collator/prototype/prop-desc.js b/test/intl402/Collator/prototype/prop-desc.js index 879362e449..f49a97bcfd 100644 --- a/test/intl402/Collator/prototype/prop-desc.js +++ b/test/intl402/Collator/prototype/prop-desc.js @@ -5,10 +5,11 @@ es5id: 10.2.1 description: Tests that Intl.Collator.prototype has the required attributes. author: Norbert Lindenberg +includes: [propertyHelper.js] ---*/ -var desc = Object.getOwnPropertyDescriptor(Intl.Collator, "prototype"); -assert.notSameValue(desc, undefined, "Intl.Collator.prototype is not defined."); -assert.sameValue(desc.writable, false, "Intl.Collator.prototype must not be writable."); -assert.sameValue(desc.enumerable, false, "Intl.Collator.prototype must not be enumerable."); -assert.sameValue(desc.configurable, false, "Intl.Collator.prototype must not be configurable."); +verifyProperty(Intl.Collator, "prototype", { + writable: false, + enumerable: false, + configurable: false, +}); diff --git a/test/intl402/DateTimeFormat/prototype/prop-desc.js b/test/intl402/DateTimeFormat/prototype/prop-desc.js index 192b58d21f..5cd5948a0c 100644 --- a/test/intl402/DateTimeFormat/prototype/prop-desc.js +++ b/test/intl402/DateTimeFormat/prototype/prop-desc.js @@ -7,10 +7,11 @@ description: > Tests that Intl.DateTimeFormat.prototype has the required attributes. author: Norbert Lindenberg +includes: [propertyHelper.js] ---*/ -var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, "prototype"); -assert.notSameValue(desc, undefined, "Intl.DateTimeFormat.prototype is not defined."); -assert.sameValue(desc.writable, false, "Intl.DateTimeFormat.prototype must not be writable."); -assert.sameValue(desc.enumerable, false, "Intl.DateTimeFormat.prototype must not be enumerable."); -assert.sameValue(desc.configurable, false, "Intl.DateTimeFormat.prototype must not be configurable."); +verifyProperty(Intl.DateTimeFormat, "prototype", { + writable: false, + enumerable: false, + configurable: false, +}); diff --git a/test/intl402/NumberFormat/prototype/prop-desc.js b/test/intl402/NumberFormat/prototype/prop-desc.js index 7e29d28287..99f1f2bc6a 100644 --- a/test/intl402/NumberFormat/prototype/prop-desc.js +++ b/test/intl402/NumberFormat/prototype/prop-desc.js @@ -5,10 +5,11 @@ es5id: 11.2.1 description: Tests that Intl.NumberFormat.prototype has the required attributes. author: Norbert Lindenberg +includes: [propertyHelper.js] ---*/ -var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, "prototype"); -assert.notSameValue(desc, undefined, "Intl.NumberFormat.prototype is not defined."); -assert.sameValue(desc.writable, false, "Intl.NumberFormat.prototype must not be writable."); -assert.sameValue(desc.enumerable, false, "Intl.NumberFormat.prototype must not be enumerable."); -assert.sameValue(desc.configurable, false, "Intl.NumberFormat.prototype must not be configurable."); +verifyProperty(Intl.NumberFormat, "prototype", { + writable: false, + enumerable: false, + configurable: false, +}); diff --git a/test/intl402/PluralRules/prototype/properties.js b/test/intl402/PluralRules/prototype/properties.js index 56faeca8a3..13147faf00 100644 --- a/test/intl402/PluralRules/prototype/properties.js +++ b/test/intl402/PluralRules/prototype/properties.js @@ -5,10 +5,11 @@ esid: sec-properties-of-intl-pluralrules-prototype-object description: Tests that Intl.PluralRules.prototype has the required attributes. author: Zibi Braniecki +includes: [propertyHelper.js] ---*/ -var desc = Object.getOwnPropertyDescriptor(Intl.PluralRules, "prototype"); -assert.notSameValue(desc, undefined, "Intl.PluralRules.prototype is not defined."); -assert.sameValue(desc.writable, false, "Intl.PluralRules.prototype must not be writable."); -assert.sameValue(desc.enumerable, false, "Intl.PluralRules.prototype must not be enumerable."); -assert.sameValue(desc.configurable, false, "Intl.PluralRules.prototype must not be configurable."); +verifyProperty(Intl.PluralRules, "prototype", { + writable: false, + enumerable: false, + configurable: false, +});