mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Use verifyProperty and remove dup check (#2146)
This commit is contained in:
parent
cc83d1d3de
commit
d47749e84d
@ -6,9 +6,6 @@ description: Intl.DateTimeFormat.prototype.formatRange.length.
|
|||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-formatRange]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatRange.length, 2);
|
|
||||||
|
|
||||||
verifyProperty(Intl.DateTimeFormat.prototype.formatRange, 'length', {
|
verifyProperty(Intl.DateTimeFormat.prototype.formatRange, 'length', {
|
||||||
value: 2,
|
value: 2,
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
|
@ -6,10 +6,9 @@ description: Intl.DateTimeFormat.prototype.formatRange.name value and descriptor
|
|||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-formatRange]
|
||||||
---*/
|
---*/
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatRange.name, 'formatRange',
|
verifyProperty(Intl.DateTimeFormat.prototype.formatRange, 'name', {
|
||||||
'The value of `Intl.DateTimeFormat.prototype.formatRange.name` is `"formatRange"`'
|
value: 'formatRange',
|
||||||
);
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
verifyNotEnumerable(Intl.DateTimeFormat.prototype.formatRange, 'name');
|
configurable: true,
|
||||||
verifyNotWritable(Intl.DateTimeFormat.prototype.formatRange, 'name');
|
});
|
||||||
verifyConfigurable(Intl.DateTimeFormat.prototype.formatRange, 'name');
|
|
||||||
|
@ -6,9 +6,6 @@ description: Intl.DateTimeFormat.prototype.formatRangeToParts.length.
|
|||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-formatRange]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatRangeToParts.length, 2);
|
|
||||||
|
|
||||||
verifyProperty(Intl.DateTimeFormat.prototype.formatRangeToParts, 'length', {
|
verifyProperty(Intl.DateTimeFormat.prototype.formatRangeToParts, 'length', {
|
||||||
value: 2,
|
value: 2,
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
|
@ -6,10 +6,9 @@ description: Intl.DateTimeFormat.prototype.formatRangeToParts.name value and des
|
|||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [Intl.DateTimeFormat-formatRange]
|
features: [Intl.DateTimeFormat-formatRange]
|
||||||
---*/
|
---*/
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatRangeToParts.name, 'formatRangeToParts',
|
verifyProperty(Intl.DateTimeFormat.prototype.formatRangeToParts, 'name', {
|
||||||
'The value of `Intl.DateTimeFormat.prototype.formatRangeToParts.name` is `"formatRangeToParts"`'
|
value: 'formatRangeToParts',
|
||||||
);
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
verifyNotEnumerable(Intl.DateTimeFormat.prototype.formatRangeToParts, 'name');
|
configurable: true,
|
||||||
verifyNotWritable(Intl.DateTimeFormat.prototype.formatRangeToParts, 'name');
|
});
|
||||||
verifyConfigurable(Intl.DateTimeFormat.prototype.formatRangeToParts, 'name');
|
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
description: Intl.DateTimeFormat.prototype.formatToParts.length.
|
description: Intl.DateTimeFormat.prototype.formatToParts.length.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
verifyProperty(Intl.DateTimeFormat.prototype.formatToParts, 'length', {
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatToParts.length, 1);
|
value: 1,
|
||||||
|
enumerable: false,
|
||||||
verifyNotEnumerable(Intl.DateTimeFormat.prototype.formatToParts, "length");
|
writable: false,
|
||||||
verifyNotWritable(Intl.DateTimeFormat.prototype.formatToParts, "length");
|
configurable: true,
|
||||||
verifyConfigurable(Intl.DateTimeFormat.prototype.formatToParts, "length");
|
});
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
description: Intl.DateTimeFormat.prototype.formatToParts.name value and descriptor.
|
description: Intl.DateTimeFormat.prototype.formatToParts.name value and descriptor.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
verifyProperty(Intl.DateTimeFormat.prototype.formatToParts, 'name', {
|
||||||
assert.sameValue(Intl.DateTimeFormat.prototype.formatToParts.name, 'formatToParts',
|
value: 'formatToParts',
|
||||||
'The value of `Intl.DateTimeFormat.prototype.formatToParts.name` is `"formatToParts"`'
|
enumerable: false,
|
||||||
);
|
writable: false,
|
||||||
|
configurable: true,
|
||||||
verifyNotEnumerable(Intl.DateTimeFormat.prototype.formatToParts, 'name');
|
});
|
||||||
verifyNotWritable(Intl.DateTimeFormat.prototype.formatToParts, 'name');
|
|
||||||
verifyConfigurable(Intl.DateTimeFormat.prototype.formatToParts, 'name');
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user