diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/raw')
-rw-r--r-- | js/src/tests/test262/built-ins/String/raw/length.js | 14 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/String/raw/name.js | 14 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/String/raw/not-a-constructor.js | 2 |
3 files changed, 13 insertions, 17 deletions
diff --git a/js/src/tests/test262/built-ins/String/raw/length.js b/js/src/tests/test262/built-ins/String/raw/length.js index deb433fde5..7af20ab224 100644 --- a/js/src/tests/test262/built-ins/String/raw/length.js +++ b/js/src/tests/test262/built-ins/String/raw/length.js @@ -11,13 +11,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.raw.length, 1, - 'The value of `String.raw.length` is `1`' -); - -verifyNotEnumerable(String.raw, 'length'); -verifyNotWritable(String.raw, 'length'); -verifyConfigurable(String.raw, 'length'); +verifyProperty(String.raw, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/raw/name.js b/js/src/tests/test262/built-ins/String/raw/name.js index c7533e923b..c9c7f8a518 100644 --- a/js/src/tests/test262/built-ins/String/raw/name.js +++ b/js/src/tests/test262/built-ins/String/raw/name.js @@ -12,13 +12,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue( - String.raw.name, 'raw', - 'The value of `String.raw.name` is `"raw"`' -); - -verifyNotEnumerable(String.raw, 'name'); -verifyNotWritable(String.raw, 'name'); -verifyConfigurable(String.raw, 'name'); +verifyProperty(String.raw, "name", { + value: "raw", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/raw/not-a-constructor.js b/js/src/tests/test262/built-ins/String/raw/not-a-constructor.js index 6beda7f32f..d0c324b883 100644 --- a/js/src/tests/test262/built-ins/String/raw/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/String/raw/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(String.raw), false, 'isConstructor(String.raw) mu assert.throws(TypeError, () => { new String.raw({raw: []}, []); -}, '`new String.raw({raw: []}, [])` throws TypeError'); +}); reportCompare(0, 0); |