update DurationFormat tests

This commit is contained in:
Romulo Cintra 2022-01-25 15:46:05 +01:00 committed by Rick Waldron
parent d86b913c11
commit 95613d4ec8
6 changed files with 18 additions and 9 deletions

View File

@ -27,6 +27,8 @@ includes: [propertyHelper.js]
assert.sameValue(Intl.DurationFormat.length, 0); assert.sameValue(Intl.DurationFormat.length, 0);
verifyNotEnumerable(Intl.DurationFormat, "length"); verifyProperty(Intl.DurationFormat, 'length', {
verifyNotWritable(Intl.DurationFormat, "length"); enumerable: false,
verifyConfigurable(Intl.DurationFormat, "length"); writable: false,
configurable: true
});

View File

@ -23,6 +23,8 @@ includes: [propertyHelper.js]
assert.sameValue(Intl.DurationFormat.name, "DurationFormat"); assert.sameValue(Intl.DurationFormat.name, "DurationFormat");
verifyNotEnumerable(Intl.DurationFormat, "name"); verifyProperty(Intl.DurationFormat, 'name', {
verifyNotWritable(Intl.DurationFormat, "name"); enumerable: false,
verifyConfigurable(Intl.DurationFormat, "name"); writable: false,
configurable: true
});

View File

@ -25,6 +25,8 @@ features: [Intl.DurationFormat]
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/
verifyNotEnumerable(Intl, "DurationFormat"); verifyProperty(Intl, 'DurationFormat', {
verifyWritable(Intl, "DurationFormat"); enumerable: false,
verifyConfigurable(Intl, "DurationFormat"); writable: true,
configurable: true
});

View File

@ -21,6 +21,7 @@ info: |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }. [[Configurable]]: true }.
features: [Intl.DurationFormat]
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/

View File

@ -21,6 +21,7 @@ info: |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }. [[Configurable]]: true }.
features: [Intl.DurationFormat]
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/

View File

@ -21,6 +21,7 @@ info: |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }. [[Configurable]]: true }.
features: [Intl.DurationFormat]
includes: [propertyHelper.js] includes: [propertyHelper.js]
---*/ ---*/