diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-01-25 14:37:36 -0500 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2018-01-25 14:37:36 -0500 |
commit | 6f59ddc4578f252aac6c6b1be3d085f1e8d39cf4 (patch) | |
tree | 1c372880a88eb67b17e397d10f7baa5883d2ea0d /test/annexB | |
parent | 05d1ddf670e1a39db1c391af735d91c2200cd5ac (diff) | |
download | qtdeclarative-testsuites-6f59ddc4578f252aac6c6b1be3d085f1e8d39cf4.tar.gz |
Fix annex B tests
Diffstat (limited to 'test/annexB')
-rw-r--r-- | test/annexB/built-ins/String/prototype/trimLeft/name.js | 14 | ||||
-rw-r--r-- | test/annexB/built-ins/String/prototype/trimRight/name.js | 17 |
2 files changed, 9 insertions, 22 deletions
diff --git a/test/annexB/built-ins/String/prototype/trimLeft/name.js b/test/annexB/built-ins/String/prototype/trimLeft/name.js index d9509c308..af1a0b1db 100644 --- a/test/annexB/built-ins/String/prototype/trimLeft/name.js +++ b/test/annexB/built-ins/String/prototype/trimLeft/name.js @@ -4,24 +4,18 @@ /*--- esid: sec-string.prototype.trimLeft description: > - String.prototype.trimLeft.name is "trimLeft". + String.prototype.trimLeft.name is "trimStart". info: > String.prototype.trimLeft ( ) - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. + The function object that is the initial value of String.prototype.trimLeft is the same function object that is the initial value of String.prototype.trimStart. - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] -features: [string-trimming] +features: [string-trimming,String.prototype.trimStart] ---*/ verifyProperty(String.prototype.trimLeft, "name", { - value: "trimLeft", + value: "trimStart", enumerable: false, writable: false, configurable: true, diff --git a/test/annexB/built-ins/String/prototype/trimRight/name.js b/test/annexB/built-ins/String/prototype/trimRight/name.js index 14f6b494f..2044da80d 100644 --- a/test/annexB/built-ins/String/prototype/trimRight/name.js +++ b/test/annexB/built-ins/String/prototype/trimRight/name.js @@ -4,24 +4,17 @@ /*--- esid: sec-string.prototype.trimRight description: > - String.prototype.trimRight.name is "trimRight". + String.prototype.trimRight.name is "trimEnd". info: > - String.prototype.trimRight ( ) + String.prototype.trimRight ( )# - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. + The function object that is the initial value of String.prototype.trimRight is the same function object that is the initial value of String.prototype.trimEnd. includes: [propertyHelper.js] -features: [string-trimming] +features: [string-trimming,String.prototype.trimEnd] ---*/ verifyProperty(String.prototype.trimRight, "name", { - value: "trimRight", + value: "trimEnd", enumerable: false, writable: false, configurable: true, |