Use verifyProperty and remove dup check (#2146)

This commit is contained in:
Frank Yung-Fong Tang 2019-05-02 16:49:40 -07:00 committed by Leo Balter
parent cc83d1d3de
commit d47749e84d
6 changed files with 24 additions and 34 deletions

View File

@ -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,

View File

@ -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');

View File

@ -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,

View File

@ -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');

View File

@ -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"); });

View File

@ -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');