diff --git a/test/built-ins/DataView/prototype/getFloat16/length.js b/test/built-ins/DataView/prototype/getFloat16/length.js index 3c054dd1da..2f4c52a53f 100644 --- a/test/built-ins/DataView/prototype/getFloat16/length.js +++ b/test/built-ins/DataView/prototype/getFloat16/length.js @@ -9,8 +9,9 @@ features: [Float16Array] includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat16.length, 1); - -verifyNotEnumerable(DataView.prototype.getFloat16, "length"); -verifyNotWritable(DataView.prototype.getFloat16, "length"); -verifyConfigurable(DataView.prototype.getFloat16, "length"); +verifyProperty(DataView.prototype.getFloat16, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat16/name.js b/test/built-ins/DataView/prototype/getFloat16/name.js index 6d8f4ffb46..dd8310ab85 100644 --- a/test/built-ins/DataView/prototype/getFloat16/name.js +++ b/test/built-ins/DataView/prototype/getFloat16/name.js @@ -9,8 +9,9 @@ features: [Float16Array] includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.getFloat16.name, "getFloat16"); - -verifyNotEnumerable(DataView.prototype.getFloat16, "name"); -verifyNotWritable(DataView.prototype.getFloat16, "name"); -verifyConfigurable(DataView.prototype.getFloat16, "name"); +verifyProperty(DataView.prototype.getFloat16, "name", { + value: "getFloat16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/getFloat16/not-a-constructor.js b/test/built-ins/DataView/prototype/getFloat16/not-a-constructor.js index 192b5dae15..3ccac89059 100644 --- a/test/built-ins/DataView/prototype/getFloat16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getFloat16/not-a-constructor.js @@ -17,5 +17,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat16(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setFloat16/length.js b/test/built-ins/DataView/prototype/setFloat16/length.js index 6d8f07c8e4..70ba7a3b86 100644 --- a/test/built-ins/DataView/prototype/setFloat16/length.js +++ b/test/built-ins/DataView/prototype/setFloat16/length.js @@ -9,8 +9,9 @@ features: [Float16Array] includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat16.length, 2); - -verifyNotEnumerable(DataView.prototype.setFloat16, "length"); -verifyNotWritable(DataView.prototype.setFloat16, "length"); -verifyConfigurable(DataView.prototype.setFloat16, "length"); +verifyProperty(DataView.prototype.setFloat16, "length", { + value: 2, + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat16/name.js b/test/built-ins/DataView/prototype/setFloat16/name.js index 47101fde40..a6a9dd305d 100644 --- a/test/built-ins/DataView/prototype/setFloat16/name.js +++ b/test/built-ins/DataView/prototype/setFloat16/name.js @@ -9,8 +9,9 @@ features: [Float16Array] includes: [propertyHelper.js] ---*/ -assert.sameValue(DataView.prototype.setFloat16.name, "setFloat16"); - -verifyNotEnumerable(DataView.prototype.setFloat16, "name"); -verifyNotWritable(DataView.prototype.setFloat16, "name"); -verifyConfigurable(DataView.prototype.setFloat16, "name"); +verifyProperty(DataView.prototype.setFloat16, "name", { + value: "setFloat16", + writable: false, + enumerable: false, + configurable: true +}); diff --git a/test/built-ins/DataView/prototype/setFloat16/not-a-constructor.js b/test/built-ins/DataView/prototype/setFloat16/not-a-constructor.js index d9d26940c9..32344827e5 100644 --- a/test/built-ins/DataView/prototype/setFloat16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setFloat16/not-a-constructor.js @@ -17,5 +17,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat16(0, 0)` throws TypeError'); +});