rewrite tests to use verifyProperty

This commit is contained in:
Kevin Gibbons 2024-03-22 17:48:56 -07:00 committed by Ms2ger
parent 0b1abd5ee7
commit 5424d7e834
589 changed files with 3534 additions and 3287 deletions

View File

@ -25,8 +25,9 @@ features: [Symbol.species]
var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -15,11 +15,9 @@ includes: [propertyHelper.js]
var descriptor = Object.getOwnPropertyDescriptor(Array, Symbol.species);
assert.sameValue(
descriptor.get.name,
'get [Symbol.species]'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get [Symbol.species]",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,12 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.from.name,
'from',
'The value of Array.from.name is expected to be "from"'
);
verifyNotEnumerable(Array.from, 'name');
verifyNotWritable(Array.from, 'name');
verifyConfigurable(Array.from, 'name');
verifyProperty(Array.from, "name", {
value: "from",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -14,8 +14,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.from.length, 1, 'The value of Array.from.length is expected to be 1');
verifyNotEnumerable(Array.from, 'length');
verifyNotWritable(Array.from, 'length');
verifyConfigurable(Array.from, 'length');
verifyProperty(Array.from, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -20,8 +20,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.isArray.name, "isArray", 'The value of Array.isArray.name is expected to be "isArray"');
verifyNotEnumerable(Array.isArray, "name");
verifyNotWritable(Array.isArray, "name");
verifyConfigurable(Array.isArray, "name");
verifyProperty(Array.isArray, "name", {
value: "isArray",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -17,8 +17,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.length, 1, 'The value of Array.length is expected to be 1');
verifyNotEnumerable(Array, 'length');
verifyNotWritable(Array, 'length');
verifyConfigurable(Array, 'length');
verifyProperty(Array, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.name, 'Array', 'The value of Array.name is expected to be "Array"');
verifyNotEnumerable(Array, 'name');
verifyNotWritable(Array, 'name');
verifyConfigurable(Array, 'name');
verifyProperty(Array, "name", {
value: "Array",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -11,11 +11,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.of.length, 0,
'The value of Array.of.length is expected to be 0'
);
verifyNotEnumerable(Array.of, 'length');
verifyNotWritable(Array.of, 'length');
verifyConfigurable(Array.of, 'length');
verifyProperty(Array.of, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.of.name, 'of',
'The value of Array.of.name is expected to be "of"'
);
verifyNotEnumerable(Array.of, 'name');
verifyNotWritable(Array.of, 'name');
verifyConfigurable(Array.of, 'name');
verifyProperty(Array.of, "name", {
value: "of",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -18,11 +18,9 @@ assert.sameValue(
'The value of `typeof Array.prototype.at` is expected to be "function"'
);
assert.sameValue(
Array.prototype.at.length, 1,
'The value of Array.prototype.at.length is expected to be 1'
);
verifyNotEnumerable(Array.prototype.at, 'length');
verifyNotWritable(Array.prototype.at, 'length');
verifyConfigurable(Array.prototype.at, 'length');
verifyProperty(Array.prototype.at, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -25,8 +25,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.concat.length, 1, 'The value of Array.prototype.concat.length is expected to be 1');
verifyNotEnumerable(Array.prototype.concat, 'length');
verifyNotWritable(Array.prototype.concat, 'length');
verifyConfigurable(Array.prototype.concat, 'length');
verifyProperty(Array.prototype.concat, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,12 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.concat.name,
"concat",
'The value of Array.prototype.concat.name is expected to be "concat"'
);
verifyNotEnumerable(Array.prototype.concat, "name");
verifyNotWritable(Array.prototype.concat, "name");
verifyConfigurable(Array.prototype.concat, "name");
verifyProperty(Array.prototype.concat, "name", {
value: "concat",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -10,11 +10,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.copyWithin.length, 2,
'The value of `Array.prototype.copyWithin.length` is `2`'
);
verifyNotEnumerable(Array.prototype.copyWithin, 'length');
verifyNotWritable(Array.prototype.copyWithin, 'length');
verifyConfigurable(Array.prototype.copyWithin, 'length');
verifyProperty(Array.prototype.copyWithin, "length", {
value: 2,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.copyWithin.name, 'copyWithin',
'The value of `Array.prototype.copyWithin.name` is `"copyWithin"`'
);
verifyNotEnumerable(Array.prototype.copyWithin, 'name');
verifyNotWritable(Array.prototype.copyWithin, 'name');
verifyConfigurable(Array.prototype.copyWithin, 'name');
verifyProperty(Array.prototype.copyWithin, "name", {
value: "copyWithin",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.entries.length, 0,
'The value of `Array.prototype.entries.length` is `0`'
);
verifyNotEnumerable(Array.prototype.entries, 'length');
verifyNotWritable(Array.prototype.entries, 'length');
verifyConfigurable(Array.prototype.entries, 'length');
verifyProperty(Array.prototype.entries, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.entries.name, 'entries',
'The value of `Array.prototype.entries.name` is `"entries"`'
);
verifyNotEnumerable(Array.prototype.entries, 'name');
verifyNotWritable(Array.prototype.entries, 'name');
verifyConfigurable(Array.prototype.entries, 'name');
verifyProperty(Array.prototype.entries, "name", {
value: "entries",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -11,11 +11,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.every.length, 1,
'The value of `Array.prototype.every.length` is `1`'
);
verifyNotEnumerable(Array.prototype.every, 'length');
verifyNotWritable(Array.prototype.every, 'length');
verifyConfigurable(Array.prototype.every, 'length');
verifyProperty(Array.prototype.every, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.every.name, "every");
verifyNotEnumerable(Array.prototype.every, "name");
verifyNotWritable(Array.prototype.every, "name");
verifyConfigurable(Array.prototype.every, "name");
verifyProperty(Array.prototype.every, "name", {
value: "every",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -8,11 +8,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.fill.length, 1,
'The value of `Array.prototype.fill.length` is `1`'
);
verifyNotEnumerable(Array.prototype.fill, 'length');
verifyNotWritable(Array.prototype.fill, 'length');
verifyConfigurable(Array.prototype.fill, 'length');
verifyProperty(Array.prototype.fill, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.fill.name, 'fill',
'The value of `Array.prototype.fill.name` is `"fill"`'
);
verifyNotEnumerable(Array.prototype.fill, 'name');
verifyNotWritable(Array.prototype.fill, 'name');
verifyConfigurable(Array.prototype.fill, 'name');
verifyProperty(Array.prototype.fill, "name", {
value: "fill",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.filter.length, 1);
verifyNotEnumerable(Array.prototype.filter, 'length');
verifyNotWritable(Array.prototype.filter, 'length');
verifyConfigurable(Array.prototype.filter, 'length');
verifyProperty(Array.prototype.filter, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.filter.name, "filter");
verifyNotEnumerable(Array.prototype.filter, "name");
verifyNotWritable(Array.prototype.filter, "name");
verifyConfigurable(Array.prototype.filter, "name");
verifyProperty(Array.prototype.filter, "name", {
value: "filter",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -8,11 +8,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.find.length, 1,
'The value of `Array.prototype.find.length` is `1`'
);
verifyNotEnumerable(Array.prototype.find, 'length');
verifyNotWritable(Array.prototype.find, 'length');
verifyConfigurable(Array.prototype.find, 'length');
verifyProperty(Array.prototype.find, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.find.name, 'find',
'The value of `Array.prototype.find.name` is `"find"`'
);
verifyNotEnumerable(Array.prototype.find, 'name');
verifyNotWritable(Array.prototype.find, 'name');
verifyConfigurable(Array.prototype.find, 'name');
verifyProperty(Array.prototype.find, "name", {
value: "find",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -8,11 +8,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.findIndex.length, 1,
'The value of `Array.prototype.findIndex.length` is `1`'
);
verifyNotEnumerable(Array.prototype.findIndex, 'length');
verifyNotWritable(Array.prototype.findIndex, 'length');
verifyConfigurable(Array.prototype.findIndex, 'length');
verifyProperty(Array.prototype.findIndex, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.findIndex.name, 'findIndex',
'The value of `Array.prototype.findIndex.name` is `"findIndex"`'
);
verifyNotEnumerable(Array.prototype.findIndex, 'name');
verifyNotWritable(Array.prototype.findIndex, 'name');
verifyConfigurable(Array.prototype.findIndex, 'name');
verifyProperty(Array.prototype.findIndex, "name", {
value: "findIndex",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.forEach.length, 1);
verifyNotEnumerable(Array.prototype.forEach, 'length');
verifyNotWritable(Array.prototype.forEach, 'length');
verifyConfigurable(Array.prototype.forEach, 'length');
verifyProperty(Array.prototype.forEach, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.forEach.name, "forEach");
verifyNotEnumerable(Array.prototype.forEach, "name");
verifyNotWritable(Array.prototype.forEach, "name");
verifyConfigurable(Array.prototype.forEach, "name");
verifyProperty(Array.prototype.forEach, "name", {
value: "forEach",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ includes: [propertyHelper.js]
features: [Array.prototype.includes]
---*/
assert.sameValue(Array.prototype.includes.length, 1);
verifyNotEnumerable(Array.prototype.includes, "length");
verifyNotWritable(Array.prototype.includes, "length");
verifyConfigurable(Array.prototype.includes, "length");
verifyProperty(Array.prototype.includes, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -20,8 +20,9 @@ includes: [propertyHelper.js]
features: [Array.prototype.includes]
---*/
assert.sameValue(Array.prototype.includes.name, "includes");
verifyNotEnumerable(Array.prototype.includes, "name");
verifyNotWritable(Array.prototype.includes, "name");
verifyConfigurable(Array.prototype.includes, "name");
verifyProperty(Array.prototype.includes, "name", {
value: "includes",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.indexOf.length, 1);
verifyNotEnumerable(Array.prototype.indexOf, 'length');
verifyNotWritable(Array.prototype.indexOf, 'length');
verifyConfigurable(Array.prototype.indexOf, 'length');
verifyProperty(Array.prototype.indexOf, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.indexOf.name, "indexOf");
verifyNotEnumerable(Array.prototype.indexOf, "name");
verifyNotWritable(Array.prototype.indexOf, "name");
verifyConfigurable(Array.prototype.indexOf, "name");
verifyProperty(Array.prototype.indexOf, "name", {
value: "indexOf",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.join.length, 1);
verifyNotEnumerable(Array.prototype.join, 'length');
verifyNotWritable(Array.prototype.join, 'length');
verifyConfigurable(Array.prototype.join, 'length');
verifyProperty(Array.prototype.join, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.join.name, "join");
verifyNotEnumerable(Array.prototype.join, "name");
verifyNotWritable(Array.prototype.join, "name");
verifyConfigurable(Array.prototype.join, "name");
verifyProperty(Array.prototype.join, "name", {
value: "join",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.keys.length, 0,
'The value of `Array.prototype.keys.length` is `0`'
);
verifyNotEnumerable(Array.prototype.keys, 'length');
verifyNotWritable(Array.prototype.keys, 'length');
verifyConfigurable(Array.prototype.keys, 'length');
verifyProperty(Array.prototype.keys, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -12,11 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(
Array.prototype.keys.name, 'keys',
'The value of `Array.prototype.keys.name` is `"keys"`'
);
verifyNotEnumerable(Array.prototype.keys, 'name');
verifyNotWritable(Array.prototype.keys, 'name');
verifyConfigurable(Array.prototype.keys, 'name');
verifyProperty(Array.prototype.keys, "name", {
value: "keys",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.lastIndexOf.length, 1);
verifyNotEnumerable(Array.prototype.lastIndexOf, 'length');
verifyNotWritable(Array.prototype.lastIndexOf, 'length');
verifyConfigurable(Array.prototype.lastIndexOf, 'length');
verifyProperty(Array.prototype.lastIndexOf, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.lastIndexOf.name, "lastIndexOf");
verifyNotEnumerable(Array.prototype.lastIndexOf, "name");
verifyNotWritable(Array.prototype.lastIndexOf, "name");
verifyConfigurable(Array.prototype.lastIndexOf, "name");
verifyProperty(Array.prototype.lastIndexOf, "name", {
value: "lastIndexOf",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.map.length, 1);
verifyNotEnumerable(Array.prototype.map, 'length');
verifyNotWritable(Array.prototype.map, 'length');
verifyConfigurable(Array.prototype.map, 'length');
verifyProperty(Array.prototype.map, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.map.name, "map");
verifyNotEnumerable(Array.prototype.map, "name");
verifyNotWritable(Array.prototype.map, "name");
verifyConfigurable(Array.prototype.map, "name");
verifyProperty(Array.prototype.map, "name", {
value: "map",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.pop.length, 0);
verifyNotEnumerable(Array.prototype.pop, 'length');
verifyNotWritable(Array.prototype.pop, 'length');
verifyConfigurable(Array.prototype.pop, 'length');
verifyProperty(Array.prototype.pop, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.pop.name, "pop");
verifyNotEnumerable(Array.prototype.pop, "name");
verifyNotWritable(Array.prototype.pop, "name");
verifyConfigurable(Array.prototype.pop, "name");
verifyProperty(Array.prototype.pop, "name", {
value: "pop",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -25,8 +25,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.push.length, 1);
verifyNotEnumerable(Array.prototype.push, 'length');
verifyNotWritable(Array.prototype.push, 'length');
verifyConfigurable(Array.prototype.push, 'length');
verifyProperty(Array.prototype.push, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.push.name, "push");
verifyNotEnumerable(Array.prototype.push, "name");
verifyNotWritable(Array.prototype.push, "name");
verifyConfigurable(Array.prototype.push, "name");
verifyProperty(Array.prototype.push, "name", {
value: "push",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduce.length, 1);
verifyNotEnumerable(Array.prototype.reduce, 'length');
verifyNotWritable(Array.prototype.reduce, 'length');
verifyConfigurable(Array.prototype.reduce, 'length');
verifyProperty(Array.prototype.reduce, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduce.name, "reduce");
verifyNotEnumerable(Array.prototype.reduce, "name");
verifyNotWritable(Array.prototype.reduce, "name");
verifyConfigurable(Array.prototype.reduce, "name");
verifyProperty(Array.prototype.reduce, "name", {
value: "reduce",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduceRight.length, 1);
verifyNotEnumerable(Array.prototype.reduceRight, 'length');
verifyNotWritable(Array.prototype.reduceRight, 'length');
verifyConfigurable(Array.prototype.reduceRight, 'length');
verifyProperty(Array.prototype.reduceRight, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reduceRight.name, "reduceRight");
verifyNotEnumerable(Array.prototype.reduceRight, "name");
verifyNotWritable(Array.prototype.reduceRight, "name");
verifyConfigurable(Array.prototype.reduceRight, "name");
verifyProperty(Array.prototype.reduceRight, "name", {
value: "reduceRight",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reverse.length, 0);
verifyNotEnumerable(Array.prototype.reverse, 'length');
verifyNotWritable(Array.prototype.reverse, 'length');
verifyConfigurable(Array.prototype.reverse, 'length');
verifyProperty(Array.prototype.reverse, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.reverse.name, "reverse");
verifyNotEnumerable(Array.prototype.reverse, "name");
verifyNotWritable(Array.prototype.reverse, "name");
verifyConfigurable(Array.prototype.reverse, "name");
verifyProperty(Array.prototype.reverse, "name", {
value: "reverse",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.shift.length, 0);
verifyNotEnumerable(Array.prototype.shift, 'length');
verifyNotWritable(Array.prototype.shift, 'length');
verifyConfigurable(Array.prototype.shift, 'length');
verifyProperty(Array.prototype.shift, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.shift.name, "shift");
verifyNotEnumerable(Array.prototype.shift, "name");
verifyNotWritable(Array.prototype.shift, "name");
verifyConfigurable(Array.prototype.shift, "name");
verifyProperty(Array.prototype.shift, "name", {
value: "shift",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.slice.length, 2);
verifyNotEnumerable(Array.prototype.slice, 'length');
verifyNotWritable(Array.prototype.slice, 'length');
verifyConfigurable(Array.prototype.slice, 'length');
verifyProperty(Array.prototype.slice, "length", {
value: 2,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.slice.name, "slice");
verifyNotEnumerable(Array.prototype.slice, "name");
verifyNotWritable(Array.prototype.slice, "name");
verifyConfigurable(Array.prototype.slice, "name");
verifyProperty(Array.prototype.slice, "name", {
value: "slice",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.some.length, 1);
verifyNotEnumerable(Array.prototype.some, 'length');
verifyNotWritable(Array.prototype.some, 'length');
verifyConfigurable(Array.prototype.some, 'length');
verifyProperty(Array.prototype.some, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.some.name, "some");
verifyNotEnumerable(Array.prototype.some, "name");
verifyNotWritable(Array.prototype.some, "name");
verifyConfigurable(Array.prototype.some, "name");
verifyProperty(Array.prototype.some, "name", {
value: "some",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.sort.length, 1);
verifyNotEnumerable(Array.prototype.sort, 'length');
verifyNotWritable(Array.prototype.sort, 'length');
verifyConfigurable(Array.prototype.sort, 'length');
verifyProperty(Array.prototype.sort, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.sort.name, "sort");
verifyNotEnumerable(Array.prototype.sort, "name");
verifyNotWritable(Array.prototype.sort, "name");
verifyConfigurable(Array.prototype.sort, "name");
verifyProperty(Array.prototype.sort, "name", {
value: "sort",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.splice.length, 2);
verifyNotEnumerable(Array.prototype.splice, 'length');
verifyNotWritable(Array.prototype.splice, 'length');
verifyConfigurable(Array.prototype.splice, 'length');
verifyProperty(Array.prototype.splice, "length", {
value: 2,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.splice.name, "splice");
verifyNotEnumerable(Array.prototype.splice, "name");
verifyNotWritable(Array.prototype.splice, "name");
verifyConfigurable(Array.prototype.splice, "name");
verifyProperty(Array.prototype.splice, "name", {
value: "splice",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -21,8 +21,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toLocaleString.length, 0);
verifyNotEnumerable(Array.prototype.toLocaleString, 'length');
verifyNotWritable(Array.prototype.toLocaleString, 'length');
verifyConfigurable(Array.prototype.toLocaleString, 'length');
verifyProperty(Array.prototype.toLocaleString, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toLocaleString.name, "toLocaleString");
verifyNotEnumerable(Array.prototype.toLocaleString, "name");
verifyNotWritable(Array.prototype.toLocaleString, "name");
verifyConfigurable(Array.prototype.toLocaleString, "name");
verifyProperty(Array.prototype.toLocaleString, "name", {
value: "toLocaleString",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toString.length, 0);
verifyNotEnumerable(Array.prototype.toString, "length");
verifyNotWritable(Array.prototype.toString, "length");
verifyConfigurable(Array.prototype.toString, "length");
verifyProperty(Array.prototype.toString, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.toString.name, "toString");
verifyNotEnumerable(Array.prototype.toString, "name");
verifyNotWritable(Array.prototype.toString, "name");
verifyConfigurable(Array.prototype.toString, "name");
verifyProperty(Array.prototype.toString, "name", {
value: "toString",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -25,8 +25,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.unshift.length, 1);
verifyNotEnumerable(Array.prototype.unshift, 'length');
verifyNotWritable(Array.prototype.unshift, 'length');
verifyConfigurable(Array.prototype.unshift, 'length');
verifyProperty(Array.prototype.unshift, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.unshift.name, "unshift");
verifyNotEnumerable(Array.prototype.unshift, "name");
verifyNotWritable(Array.prototype.unshift, "name");
verifyConfigurable(Array.prototype.unshift, "name");
verifyProperty(Array.prototype.unshift, "name", {
value: "unshift",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -18,8 +18,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.values.length, 0);
verifyNotEnumerable(Array.prototype.values, 'length');
verifyNotWritable(Array.prototype.values, 'length');
verifyConfigurable(Array.prototype.values, 'length');
verifyProperty(Array.prototype.values, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Array.prototype.values.name, 'values');
verifyNotEnumerable(Array.prototype.values, 'name');
verifyNotWritable(Array.prototype.values, 'name');
verifyConfigurable(Array.prototype.values, 'name');
verifyProperty(Array.prototype.values, "name", {
value: "values",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -25,8 +25,9 @@ features: [Symbol.species]
var desc = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -15,11 +15,9 @@ includes: [propertyHelper.js]
var descriptor = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species);
assert.sameValue(
descriptor.get.name,
'get [Symbol.species]'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get [Symbol.species]",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.isView.length, 1);
verifyNotEnumerable(ArrayBuffer.isView, "length");
verifyNotWritable(ArrayBuffer.isView, "length");
verifyConfigurable(ArrayBuffer.isView, "length");
verifyProperty(ArrayBuffer.isView, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.isView.name, "isView");
verifyNotEnumerable(ArrayBuffer.isView, "name");
verifyNotWritable(ArrayBuffer.isView, "name");
verifyConfigurable(ArrayBuffer.isView, "name");
verifyProperty(ArrayBuffer.isView, "name", {
value: "isView",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -24,8 +24,9 @@ includes: [propertyHelper.js]
var desc = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor(
ArrayBuffer.prototype, 'byteLength'
);
assert.sameValue(
descriptor.get.name, 'get byteLength',
'The value of `descriptor.get.name` is `"get byteLength"`'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get byteLength",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.prototype.slice.length, 2);
verifyNotEnumerable(ArrayBuffer.prototype.slice, "length");
verifyNotWritable(ArrayBuffer.prototype.slice, "length");
verifyConfigurable(ArrayBuffer.prototype.slice, "length");
verifyProperty(ArrayBuffer.prototype.slice, "length", {
value: 2,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(ArrayBuffer.prototype.slice.name, "slice");
verifyNotEnumerable(ArrayBuffer.prototype.slice, "name");
verifyNotWritable(ArrayBuffer.prototype.slice, "name");
verifyConfigurable(ArrayBuffer.prototype.slice, "name");
verifyProperty(ArrayBuffer.prototype.slice, "name", {
value: "slice",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -25,8 +25,9 @@ features: [Symbol.iterator]
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
assert.sameValue(ArrayIteratorProto.next.length, 0);
verifyNotEnumerable(ArrayIteratorProto.next, "length");
verifyNotWritable(ArrayIteratorProto.next, "length");
verifyConfigurable(ArrayIteratorProto.next, "length");
verifyProperty(ArrayIteratorProto.next, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ features: [Symbol.iterator]
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
assert.sameValue(ArrayIteratorProto.next.name, "next");
verifyNotEnumerable(ArrayIteratorProto.next, "name");
verifyNotWritable(ArrayIteratorProto.next, "name");
verifyConfigurable(ArrayIteratorProto.next, "name");
verifyProperty(ArrayIteratorProto.next, "name", {
value: "next",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -10,7 +10,9 @@ includes: [propertyHelper.js]
---*/
var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(AsyncFunction.length, 1);
verifyNotWritable(AsyncFunction, 'length');
verifyNotEnumerable(AsyncFunction, 'length');
verifyConfigurable(AsyncFunction, 'length');
verifyProperty(AsyncFunction, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -10,7 +10,9 @@ includes: [propertyHelper.js]
---*/
var AsyncFunction = async function foo() {}.constructor;
assert.sameValue(AsyncFunction.name, "AsyncFunction");
verifyNotWritable(AsyncFunction, "name");
verifyNotEnumerable(AsyncFunction, "name");
verifyConfigurable(AsyncFunction, "name");
verifyProperty(AsyncFunction, "name", {
value: "AsyncFunction",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -10,7 +10,9 @@ includes: [propertyHelper.js]
async function foo() {};
assert.sameValue(foo.name, "foo");
verifyNotWritable(foo, "name");
verifyNotEnumerable(foo, "name");
verifyConfigurable(foo, "name");
verifyProperty(foo, "name", {
value: "foo",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.toString.length, 0);
verifyNotEnumerable(Boolean.prototype.toString, "length");
verifyNotWritable(Boolean.prototype.toString, "length");
verifyConfigurable(Boolean.prototype.toString, "length");
verifyProperty(Boolean.prototype.toString, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.toString.name, "toString");
verifyNotEnumerable(Boolean.prototype.toString, "name");
verifyNotWritable(Boolean.prototype.toString, "name");
verifyConfigurable(Boolean.prototype.toString, "name");
verifyProperty(Boolean.prototype.toString, "name", {
value: "toString",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -22,8 +22,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.valueOf.length, 0);
verifyNotEnumerable(Boolean.prototype.valueOf, "length");
verifyNotWritable(Boolean.prototype.valueOf, "length");
verifyConfigurable(Boolean.prototype.valueOf, "length");
verifyProperty(Boolean.prototype.valueOf, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(Boolean.prototype.valueOf.name, "valueOf");
verifyNotEnumerable(Boolean.prototype.valueOf, "name");
verifyNotWritable(Boolean.prototype.valueOf, "name");
verifyConfigurable(Boolean.prototype.valueOf, "name");
verifyProperty(Boolean.prototype.valueOf, "name", {
value: "valueOf",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -8,8 +8,9 @@ description: >
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.name, "DataView", "The value of `DataView.name` is `'DataView'`");
verifyNotEnumerable(DataView, "name");
verifyNotWritable(DataView, "name");
verifyConfigurable(DataView, "name");
verifyProperty(DataView, "name", {
value: "DataView",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -24,8 +24,9 @@ includes: [propertyHelper.js]
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "buffer");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor(
DataView.prototype, 'buffer'
);
assert.sameValue(
descriptor.get.name, 'get buffer',
'The value of `descriptor.get.name` is `"get buffer"`'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get buffer",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -24,8 +24,9 @@ includes: [propertyHelper.js]
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor(
DataView.prototype, 'byteLength'
);
assert.sameValue(
descriptor.get.name, 'get byteLength',
'The value of `descriptor.get.name` is `"get byteLength"`'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get byteLength",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -24,8 +24,9 @@ includes: [propertyHelper.js]
var desc = Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");
verifyProperty(desc.get, "length", {
value: 0,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -17,11 +17,9 @@ var descriptor = Object.getOwnPropertyDescriptor(
DataView.prototype, 'byteOffset'
);
assert.sameValue(
descriptor.get.name, 'get byteOffset',
'The value of `descriptor.get.name` is `"get byteOffset"`'
);
verifyNotEnumerable(descriptor.get, 'name');
verifyNotWritable(descriptor.get, 'name');
verifyConfigurable(descriptor.get, 'name');
verifyProperty(descriptor.get, "name", {
value: "get byteOffset",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat32.length, 1);
verifyNotEnumerable(DataView.prototype.getFloat32, "length");
verifyNotWritable(DataView.prototype.getFloat32, "length");
verifyConfigurable(DataView.prototype.getFloat32, "length");
verifyProperty(DataView.prototype.getFloat32, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat32.name, "getFloat32");
verifyNotEnumerable(DataView.prototype.getFloat32, "name");
verifyNotWritable(DataView.prototype.getFloat32, "name");
verifyConfigurable(DataView.prototype.getFloat32, "name");
verifyProperty(DataView.prototype.getFloat32, "name", {
value: "getFloat32",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat64.length, 1);
verifyNotEnumerable(DataView.prototype.getFloat64, "length");
verifyNotWritable(DataView.prototype.getFloat64, "length");
verifyConfigurable(DataView.prototype.getFloat64, "length");
verifyProperty(DataView.prototype.getFloat64, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getFloat64.name, "getFloat64");
verifyNotEnumerable(DataView.prototype.getFloat64, "name");
verifyNotWritable(DataView.prototype.getFloat64, "name");
verifyConfigurable(DataView.prototype.getFloat64, "name");
verifyProperty(DataView.prototype.getFloat64, "name", {
value: "getFloat64",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt16.length, 1);
verifyNotEnumerable(DataView.prototype.getInt16, "length");
verifyNotWritable(DataView.prototype.getInt16, "length");
verifyConfigurable(DataView.prototype.getInt16, "length");
verifyProperty(DataView.prototype.getInt16, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt16.name, "getInt16");
verifyNotEnumerable(DataView.prototype.getInt16, "name");
verifyNotWritable(DataView.prototype.getInt16, "name");
verifyConfigurable(DataView.prototype.getInt16, "name");
verifyProperty(DataView.prototype.getInt16, "name", {
value: "getInt16",
writable: false,
enumerable: false,
configurable: true
});

View File

@ -23,8 +23,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt32.length, 1);
verifyNotEnumerable(DataView.prototype.getInt32, "length");
verifyNotWritable(DataView.prototype.getInt32, "length");
verifyConfigurable(DataView.prototype.getInt32, "length");
verifyProperty(DataView.prototype.getInt32, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});

View File

@ -19,8 +19,9 @@ info: |
includes: [propertyHelper.js]
---*/
assert.sameValue(DataView.prototype.getInt32.name, "getInt32");
verifyNotEnumerable(DataView.prototype.getInt32, "name");
verifyNotWritable(DataView.prototype.getInt32, "name");
verifyConfigurable(DataView.prototype.getInt32, "name");
verifyProperty(DataView.prototype.getInt32, "name", {
value: "getInt32",
writable: false,
enumerable: false,
configurable: true
});

Some files were not shown because too many files have changed in this diff Show More