diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/DataView/prototype/byteOffset')
-rw-r--r-- | js/src/tests/test262/built-ins/DataView/prototype/byteOffset/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/DataView/prototype/byteOffset/name.js | 14 |
2 files changed, 12 insertions, 13 deletions
diff --git a/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/length.js b/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/length.js index 6565d89280..b6ed091883 100644 --- a/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/length.js +++ b/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/length.js @@ -24,10 +24,11 @@ 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 +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/name.js b/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/name.js index e77dc91d09..f4e24e3bc3 100644 --- a/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/name.js +++ b/js/src/tests/test262/built-ins/DataView/prototype/byteOffset/name.js @@ -17,13 +17,11 @@ 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 +}); reportCompare(0, 0); |