diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/of')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/of/length.js | 14 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/Array/of/name.js | 14 |
2 files changed, 12 insertions, 16 deletions
diff --git a/js/src/tests/test262/built-ins/Array/of/length.js b/js/src/tests/test262/built-ins/Array/of/length.js index f77c48b768..59de2ff7ef 100644 --- a/js/src/tests/test262/built-ins/Array/of/length.js +++ b/js/src/tests/test262/built-ins/Array/of/length.js @@ -11,13 +11,11 @@ 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 +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Array/of/name.js b/js/src/tests/test262/built-ins/Array/of/name.js index 842dd1ad11..39ce92b8e7 100644 --- a/js/src/tests/test262/built-ins/Array/of/name.js +++ b/js/src/tests/test262/built-ins/Array/of/name.js @@ -12,13 +12,11 @@ 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 +}); reportCompare(0, 0); |