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);
verifyNotEnumerable(Intl.DurationFormat, "length");
verifyNotWritable(Intl.DurationFormat, "length");
verifyConfigurable(Intl.DurationFormat, "length");
verifyProperty(Intl.DurationFormat, 'length', {
enumerable: false,
writable: false,
configurable: true
});

View File

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

View File

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

View File

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

View File

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

View File

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