diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.20')
126 files changed, 2377 insertions, 2152 deletions
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js index 79169e5ea..6ec0605ab 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js
- * @description String.prototype.trim must exist as a function
- */
-
-
-function testcase() {
- var f = String.prototype.trim;
- if (typeof(f) === "function") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = String.prototype.trim; + if (typeof(f) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js index b398bbbfd..bed4f646b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js
- * @description String.prototype.trim must exist as a function taking 0 parameters
- */
-
-
-function testcase() {
- if (String.prototype.trim.length === 0) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim must exist as a function taking 0 parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + if (String.prototype.trim.length === 0) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js index 25ed95e5e..919519085 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js
- * @description String.prototype.trim throws TypeError when string is undefined
- */
-
-
-function testcase() {
- try
- {
- String.prototype.trim.call(undefined);
- return false;
- }
- catch(e)
- {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim throws TypeError when string is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + String.prototype.trim.call(undefined); + return false; + } + catch(e) + { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js index 59fbdf1c0..f6bae3ed3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js
- * @description String.prototype.trim throws TypeError when string is null
- */
-
-
-function testcase() {
- try
- {
- String.prototype.trim.call(null);
- return false;
- }
- catch(e)
- {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim throws TypeError when string is null +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + String.prototype.trim.call(null); + return false; + } + catch(e) + { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js index 44d698147..cc416842a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js
- * @description String.prototype.trim works for primitive type boolean
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(true) == "true")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for primitive type boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(true) == "true") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js index 45427be32..5fbb5b8de 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js
- * @description String.prototype.trim works for primitive type number
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(0) == "0")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for primitive type number +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(0) == "0") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js index 5a52aefb4..59c7b5ac0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js
- * @description String.prototype.trim works for an Object
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call({})=="[object Object]")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for an Object +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call({})=="[object Object]") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js index 58cc06917..94ba05ac4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js
- * @description String.prototype.trim works for an String
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(new String()) == "")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for an String +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(new String()) == "") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js index eeba20fd9..f5e2ccfef 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js
- * @description String.prototype.trim works for a primitive string
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call("abc") === "abc")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for a primitive string +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call("abc") === "abc") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js index 834bcd3c8..332805171 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js
- * @description String.prototype.trim works for a primitive string (value is ' abc')
- */
-
-
-function testcase() {
- var strObj = String(" abc");
- return "abc" === strObj.trim() && strObj.toString() === " abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim works for a primitive string (value is ' + abc') +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = String(" abc"); + return "abc" === strObj.trim() && strObj.toString() === " abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js index d7e1e1275..a647b72a9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js
- * @description String.prototype.trim works for a String object which value is undefined
- */
-
-
-function testcase() {
- var strObj = new String(undefined);
- return strObj.trim() === "undefined";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim works for a String object which value is + undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = new String(undefined); + return strObj.trim() === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js index 9c9163894..7f06cc45f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js
- * @description String.prototype.trim - argument 'this' is a boolean whose value is false
- */
-
-
-function testcase() {
- return String.prototype.trim.call(false) === "false";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a boolean whose value + is false +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(false) === "false"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js index 799243a29..a67144e6d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is +Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(+Infinity) === "Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is +Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(+Infinity) === "Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js index 030844255..a1ca4451a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is -Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-Infinity) === "-Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is -Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-Infinity) === "-Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js index ee786b0bc..b7d881dd9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 20 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(100000000000000000000) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 20 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(100000000000000000000) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js index 3018d93bf..d567456b8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 21 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1000000000000000000000) === "1e+21";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 21 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1000000000000000000000) === "1e+21"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js index 9e7d0863f..ef235f30c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 22 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(10000000000000000000000) === "1e+22";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 22 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(10000000000000000000000) === "1e+22"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js index 01f322384..ec5a09815 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e+20)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+20) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e+20) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+20) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js index 49bbcae8d..2a5c14c36 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js
- * @description String.prototype.trim - argument 'this' is a number that converts to string (value is 1e+21)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+21) === "1e+21";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to string (value is 1e+21) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+21) === "1e+21"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js index 311f85030..b28f0b6c9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js
- * @description String.prototype.trim - argument 'this' is a number that converts to string (value is 1e+22)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+22) === "1e+22";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to string (value is 1e+22) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+22) === "1e+22"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js index a8338d4f3..c5bda3ded 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0.000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.000001) === "0.000001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0.000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.000001) === "0.000001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js index 1697f61ad..65937d246 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js
- * @description String.prototype.trim - argument argument 'this' is a number that converts to a string (value is 0.0000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.0000001) === "1e-7";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument argument 'this' is a number that + converts to a string (value is 0.0000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.0000001) === "1e-7"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js index f92684bde..af7aa3125 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js
- * @description String.prototype.trim - argument 'this' is a boolean whose value is true
- */
-
-
-function testcase() {
- return String.prototype.trim.call(true) === "true";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a boolean whose value + is true +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(true) === "true"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js index 80684263d..de2d9fac4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0.00000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.00000001) === "1e-8";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0.00000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.00000001) === "1e-8"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js index 2810c3826..ddc4812f3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-7)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-7) === "1e-7";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-7) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-7) === "1e-7"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js index e6f2f06b9..796b6495c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-6)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-6) === "0.000001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-6) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-6) === "0.000001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js index 7bbbc38c9..e2a3cc527 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-5)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-5) === "0.00001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-5) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-5) === "0.00001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js index 4fa0a9569..05819ae06 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js
- * @description String.prototype.trim - argument 'this' is an integer that converts to a string (value is 123)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123) === "123";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is an integer that + converts to a string (value is 123) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123) === "123"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js index 6da83849f..2773ab7d8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js
- * @description String.prototype.trim - argument 'this' is a decimal that converts to a string (value is 123.456)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123.456) === "123.456";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a decimal that converts + to a string (value is 123.456) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123.456) === "123.456"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js index 1897b31df..29d1a251a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 20 zeros).123)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(100000000000000000000.123) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 20 zeros).123) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(100000000000000000000.123) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js index 5016000aa..8fb9a1443 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 123.1234567)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123.1234567) === "123.1234567";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 123.1234567) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123.1234567) === "123.1234567"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js index 46d87e7b6..83144bddf 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js
- * @description String.prototype.trim - argument 'this' is an empty string
- */
-
-
-function testcase() {
- return String.prototype.trim.call("") === "";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - argument 'this' is an empty string +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("") === ""; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js index 9dcbb5eda..2a27d4b71 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'AB
- * \cd')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("AB\n\\cd") === "AB\n\\cd";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is 'AB + \cd') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("AB\n\\cd") === "AB\n\\cd"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js index 2430fdb00..1081fa4bd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is NaN)
- */
-
-function testcase() {
- return String.prototype.trim.call(NaN) === "NaN";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(NaN) === "NaN"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js index 9008c60c4..fc9e1b38b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'undefined')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("undefined") === "undefined";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + 'undefined') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("undefined") === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js index 6b4dc4baf..0ae17a6f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'null')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("null") === "null";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + 'null') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("null") === "null"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js index c1cf69927..7e6ff1162 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js
- * @description String.prototype.trim - argument 'this' is a string(value is '123#$%abc')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("123#$%abc") === "123#$%abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + '123#$%abc') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("123#$%abc") === "123#$%abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js index fc849ec9d..a30109d79 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js
- * @description String.prototype.trim - argument 'this' is a string(value is '1')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("1") === "1";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - argument 'this' is a string(value is '1') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("1") === "1"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js index 31cf3dfe7..d3a69d194 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js
- * @description String.prototype.trim - 'this' is an array that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call([1]) === '1');
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an array that converts to a + string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call([1]) === '1'); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js index 5dd2f142a..cf8ae4675 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js
- * @description String.prototype.trim - 'this' is a String Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new String("abc")) === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a String Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new String("abc")) === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js index 7ef134087..1faa6da30 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js
- * @description String.prototype.trim - 'this' is a Boolean Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new Boolean(false)) === "false");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Boolean Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new Boolean(false)) === "false"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js index a10bfd477..b82981e7a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js
- * @description String.prototype.trim - 'this' is a Number Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new Number(123)) === "123");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Number Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new Number(123)) === "123"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js index dcdb7ec19..aa4a66cc8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js
- * @description String.prototype.trim - 'this' is an object which has an own toString method
- */
-
-
-function testcase() {
- var obj = {
- toString: function () {
- return "abc";
- }
- };
-
- return (String.prototype.trim.call(obj) === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + toString method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { + toString: function () { + return "abc"; + } + }; + + return (String.prototype.trim.call(obj) === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js index 5cc60088f..9a7239e02 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js
- * @description String.prototype.trim - 'this' is an object which has an own valueOf method
- */
-
-
-function testcase() {
- var obj = {
- valueOf: function () {
- return "abc";
- }
- };
-
- return (String.prototype.trim.call(obj) === "[object Object]");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + valueOf method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { + valueOf: function () { + return "abc"; + } + }; + + return (String.prototype.trim.call(obj) === "[object Object]"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js index f8cf35917..834bd14f9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js index b2b014641..a74b353c6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js @@ -1,27 +1,30 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js
- * @description String.prototype.trim - 'this' is an object that has an own toString method that returns an object and valueOf method that returns a primitive value
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
- return (String.prototype.trim.call(obj) === "abc") && valueOfAccessed && toStringAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object that has an own + toString method that returns an object and valueOf method that + returns a primitive value +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return {}; + }, + valueOf: function () { + valueOfAccessed = true; + return "abc"; + } + }; + return (String.prototype.trim.call(obj) === "abc") && valueOfAccessed && toStringAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js index 16010f310..e3c218928 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js @@ -1,27 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js
- * @description String.prototype.trim - 'this' is an object which has an own toString and valueOf method.
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "cef";
- }
- };
- return (String.prototype.trim.call(obj) === "abc") && !valueOfAccessed && toStringAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + toString and valueOf method. +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return "abc"; + }, + valueOf: function () { + valueOfAccessed = true; + return "cef"; + } + }; + return (String.prototype.trim.call(obj) === "abc") && !valueOfAccessed && toStringAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js index 79276eb30..fddf7aef9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js
- * @description String.prototype.trim - TypeError exception was thrown when 'this' is an object that both toString and valueOf wouldn't return primitive value.
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- };
- try {
- String.prototype.trim.call(obj);
- return false;
- } catch (e) {
- return valueOfAccessed && toStringAccessed && (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - TypeError exception was thrown when + 'this' is an object that both toString and valueOf wouldn't return + primitive value. +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return {}; + }, + valueOf: function () { + valueOfAccessed = true; + return {}; + } + }; + try { + String.prototype.trim.call(obj); + return false; + } catch (e) { + return valueOfAccessed && toStringAccessed && (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js index a100e3dfa..96c548f72 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js @@ -1,34 +1,37 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js
- * @description String.prototype.trim - 'this' is an object with an own valueOf and inherited toString methods with hint string, verify inherited toString method will be called first
- */
-
-
-function testcase() {
-
- var toStringAccessed = false;
- var valueOfAccessed = false;
-
- var proto = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- }
- };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "efg";
- };
- return (String.prototype.trim.call(child) === "abc") && toStringAccessed && !valueOfAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object with an own valueOf + and inherited toString methods with hint string, verify inherited + toString method will be called first +includes: [runTestCase.js] +---*/ + +function testcase() { + + var toStringAccessed = false; + var valueOfAccessed = false; + + var proto = { + toString: function () { + toStringAccessed = true; + return "abc"; + } + }; + + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + child.valueOf = function () { + valueOfAccessed = true; + return "efg"; + }; + return (String.prototype.trim.call(child) === "abc") && toStringAccessed && !valueOfAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js index b92ed088a..c9d258329 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js
- * @description String.prototype.trim - 'this' is a string that contains east Asian characters (value is 'SD咕噜')
- */
-
-
-function testcase() {
- var str = "SD咕噜";
- return str.trim() === str;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a string that contains east + Asian characters (value is 'SD咕噜') +includes: [runTestCase.js] +---*/ + +function testcase() { + var str = "SD咕噜"; + return str.trim() === str; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js index 7d58bc7c9..133591c8b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js
- * @description String.prototype.trim - 'this' is a string that contains white space, character, number, object and null characters
- */
-
-
-function testcase() {
- var str = "abc" + " " + 123 + " " + {} + " " + "\u0000";
- var str1 = " " + str + " ";
- return str1.trim() === str;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a string that contains white + space, character, number, object and null characters +includes: [runTestCase.js] +---*/ + +function testcase() { + var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; + var str1 = " " + str + " "; + return str1.trim() === str; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js index fec8f9e58..87a357bf7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js
- * @description String.prototype.trim - 'this' is a Function Object that converts to a string
- */
-
-
-function testcase() {
- var funObj = function () { return arguments; };
- return typeof(String.prototype.trim.call(funObj)) === "string";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Function Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = function () { return arguments; }; + return typeof(String.prototype.trim.call(funObj)) === "string"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js index 6a27f832e..8a7811201 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js
- * @description String.prototype.trim - 'this' is a object Object that converts to a string
- */
-
-
-function testcase() {
- return String.prototype.trim.call({}) === "[object Object]";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a object Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call({}) === "[object Object]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js index bce2031ee..884df0e5b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js
- * @description String.prototype.trim - 'this' is a RegExp Object that converts to a string
- */
-
-
-function testcase() {
- var regObj = new RegExp(/test/);
- return String.prototype.trim.call(regObj) === "/test/";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a RegExp Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var regObj = new RegExp(/test/); + return String.prototype.trim.call(regObj) === "/test/"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js index d1c2a20b2..4d8d7bf47 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is +0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(+0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is +0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(+0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js index 23f4a60b1..6beb07cfe 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js
- * @description String.prototype.trim - 'this' is a Error Object that converts to a string
- */
-
-
-function testcase() {
- var errObj = new Error("test");
- return String.prototype.trim.call(errObj) === "Error: test";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Error Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var errObj = new Error("test"); + return String.prototype.trim.call(errObj) === "Error: test"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js index d83df0ce9..c3d400cb7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js
- * @description String.prototype.trim - 'this' is a Arguments Object that converts to a string
- */
-
-
-function testcase() {
- var argObj = function () { return arguments; } (1, 2, true);
- return String.prototype.trim.call(argObj) === "[object Arguments]";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Arguments Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var argObj = function () { return arguments; } (1, 2, true); + return String.prototype.trim.call(argObj) === "[object Arguments]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js index 1db5fa422..8e8653c3e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is -0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is -0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js index b57f0d9bd..068b16256 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is positive number)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(30) === "30";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is positive number) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(30) === "30"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js index 3fc21f36a..44f5698bc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is negative number)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-20) === "-20";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is negative number) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-20) === "-20"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js index 9d6336f3e..4b57e844b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(Infinity) === "Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(Infinity) === "Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js index 9967f0ea9..c62f49e80 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js
- * @description String.prototype.trim - 'S' is a string with all LineTerminator
- */
-
-
-function testcase() {
-
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- return (lineTerminatorsStr.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all LineTerminator +includes: [runTestCase.js] +---*/ + +function testcase() { + + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + return (lineTerminatorsStr.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js index b580cc034..0a0b0a111 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js
- * @description String.prototype.trim - 'S' is a string with null character ('\u0000')
- */
-
-
-function testcase() {
- return "\u0000".trim() === "\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string with null character + ('\u0000') +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\u0000".trim() === "\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js index 95de0a5b0..9f2e0a7f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js
- * @description String.prototype.trim - 'S' is a string that starts with null character
- */
-
-
-function testcase() {
- return "\0\u0000abc".trim() === "\0\u0000abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that starts with null + character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000abc".trim() === "\0\u0000abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js index 6b139a5ff..49c8dc4f9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js
- * @description String.prototype.trim - 'S' is a string that ends with null character
- */
-
-
-function testcase() {
- return "abc\0\u0000".trim() === "abc\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that ends with null + character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "abc\0\u0000".trim() === "abc\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js index d71d3c9be..5ca57d6d3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js
- * @description String.prototype.trim - 'S' is a string that starts with null character and ends with null character
- */
-
-
-function testcase() {
- return "\0\u0000abc\0\u0000".trim() === "\0\u0000abc\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that starts with null + character and ends with null character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000abc\0\u0000".trim() === "\0\u0000abc\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js index 473678549..01a6a98b5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js
- * @description String.prototype.trim - 'S' is a string that has null character in the middle
- */
-
-
-function testcase() {
- return "a\0\u0000bc".trim() === "a\0\u0000bc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that has null character in + the middle +includes: [runTestCase.js] +---*/ + +function testcase() { + return "a\0\u0000bc".trim() === "a\0\u0000bc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js index b749a07f6..841b7ce83 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js
- * @description String.prototype.trim - 'S' is a string with all WhiteSpace
- */
-
-
-function testcase() {
-
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- return (whiteSpacesStr.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + return (whiteSpacesStr.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js index 38cadc9af..0d56ae5e2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js
- * @description String.prototype.trim - 'S' is a string with all union of WhiteSpace and LineTerminator
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr;
-
- return (str.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string with all union of + WhiteSpace and LineTerminator +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr; + + return (str.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js index 16388a382..d0ceb6a73 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js
- * @description String.prototype.trim - 'S' is a string start with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr + "abc";
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string start with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr + "abc"; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js index c9311b9cc..0b48c7149 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js
- * @description String.prototype.trim - 'S' is a string end with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = "abc" + whiteSpacesStr + lineTerminatorsStr ;
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string end with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = "abc" + whiteSpacesStr + lineTerminatorsStr ; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js index 76ce302b9..f421b3c37 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js
- * @description String.prototype.trim - 'S' is a string start with union of all LineTerminator and all WhiteSpace and end with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr + "abc" + whiteSpacesStr + lineTerminatorsStr;
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string start with union of all + LineTerminator and all WhiteSpace and end with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr + "abc" + whiteSpacesStr + lineTerminatorsStr; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js index c2d4c891f..a4942766b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js
- * @description String.prototype.trim - 'S' is a string that union of LineTerminator and WhiteSpace in the middle
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = "ab" + whiteSpacesStr + lineTerminatorsStr + "cd";
-
- return (str.trim() === str);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that union of + LineTerminator and WhiteSpace in the middle +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = "ab" + whiteSpacesStr + lineTerminatorsStr + "cd"; + + return (str.trim() === str); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js index bf32bbf76..a8c755c41 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js
- * @description String.prototype.trim - 'S' is a string with all null character
- */
-
-
-function testcase() {
- return "\0\u0000".trim() === "\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all null character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000".trim() === "\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js index f7ee64861..1c5f3e7d6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js
- * @description String.prototype.trim - 'S' is a string with null character ('\0')
- */
-
-
-function testcase() {
- return "\0".trim() === "\0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with null character ('\0') +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0".trim() === "\0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js index f565f96ad..e8a9a74f0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js
- * @description String.prototype.trim handles multiline string with whitepace and lineterminators
- */
-
-
-function testcase() {
-var s = "\u0009a b\
-c \u0009"
-
-
- if (s.trim() === "a bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles multiline string with whitepace and + lineterminators +includes: [runTestCase.js] +---*/ + +function testcase() { +var s = "\u0009a b\ +c \u0009" + + + if (s.trim() === "a bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js index 5b17c7536..b19d15edc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js
- * @description String.prototype.trim handles whitepace and lineterminators (\uFEFFabc)
- */
-
-
-function testcase() {
- return "\uFEFFabc".trim() === "abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\uFEFFabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\uFEFFabc".trim() === "abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js index 254e14ad4..03dd4075c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u0009)
- */
-
-
-function testcase() {
- if ("abc\u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js index 0b948a0d7..3dae8de86 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000B)
- */
-
-
-function testcase() {
- if ("abc\u000B".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000B".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js index ee06d025b..50eac869b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000C)
- */
-
-
-function testcase() {
- if ("abc\u000C".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000C".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js index 99038992c..9219f9d09 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u0020)
- */
-
-
-function testcase() {
- if ("abc\u0020".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u0020".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js index 600ba4766..bc571b92b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u00A0)
- */
-
-
-function testcase() {
- if ("abc\u00A0".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u00A0".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js index 287fbd585..637463b1f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\uFEFF)
- */
-
-
-function testcase() {
- return "abc\uFEFF".trim() === "abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\uFEFF) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "abc\uFEFF".trim() === "abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js index a172918c1..72a0a75ce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009abc\u0009)
- */
-
-
-function testcase() {
- if ("\u0009abc\u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009abc\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009abc\u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js index 9cfea3598..9e3837c87 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js
- * @description String.prototype.trim handles whitepace and lineterminators ( \u0009abc \u0009)
- */
-
-
-function testcase() {
- if (" \u0009abc \u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators ( + \u0009abc \u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if (" \u0009abc \u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js index 4a30711de..e56a416f5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Babc\u000B)
- */
-
-
-function testcase() {
- if ("\u000Babc\u000B".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Babc\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Babc\u000B".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js index 814a0a52d..f464103d2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Cabc\u000C)
- */
-
-
-function testcase() {
- if ("\u000Cabc\u000C".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Cabc\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Cabc\u000C".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js index 112d1c185..725a75338 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020abc\u0020)
- */
-
-
-function testcase() {
- if ("\u0020abc\u0020".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020abc\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020abc\u0020".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js index 8fa1f4afa..2558db20b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0abc\u00A0)
- */
-
-
-function testcase() {
- if ("\u00A0abc\u00A0".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0abc\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0abc\u00A0".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js index a344dcfb2..852189fd4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009\u0009)
- */
-
-
-function testcase() {
- if ("\u0009\u0009".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009\u0009".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js index 9db3f868c..7e157a2c2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000B\u000B)
- */
-
-
-function testcase() {
- if ("\u000B\u000B".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000B\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000B\u000B".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js index cfcfd42a9..23870988b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000C\u000C)
- */
-
-
-function testcase() {
- if ("\u000C\u000C".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000C\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000C\u000C".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js index b13ffbe4b..68a60d97d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009abc)
- */
-
-
-function testcase() {
- if ("\u0009abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js index 08393f0e2..ae0f0a7eb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020\u0020)
- */
-
-
-function testcase() {
- if ("\u0020\u0020".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020\u0020".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js index 3f77e5071..d60898490 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0\u00A0)
- */
-
-
-function testcase() {
- if ("\u00A0\u00A0".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0\u00A0".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js index 79325a4c1..d2083b707 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js
- * @description String.prototype.trim handles whitepace and lineterminators (\uFEFF\uFEFF)
- */
-
-
-function testcase() {
- return "\uFEFF\uFEFF".trim() === "";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\uFEFF\uFEFF) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\uFEFF\uFEFF".trim() === ""; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js index 454f94bda..c32c26f21 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0009c)
- */
-
-
-function testcase() {
- if ("ab\u0009c".trim() === "ab\u0009c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0009c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u0009c".trim() === "ab\u0009c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js index 58cd7d1de..0e7bc4f8b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u000Bc)
- */
-
-
-function testcase() {
- if ("ab\u000Bc".trim() === "ab\u000Bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u000Bc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u000Bc".trim() === "ab\u000Bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js index 9ab833133..8f463642f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u000Cc)
- */
-
-
-function testcase() {
- if ("ab\u000Cc".trim() === "ab\u000Cc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u000Cc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u000Cc".trim() === "ab\u000Cc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js index 4807a06cc..0262fc1eb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0020c)
- */
-
-
-function testcase() {
- if ("ab\u0020c".trim() === "ab\u0020c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0020c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u0020c".trim() === "ab\u0020c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js index 00cf510e9..f7d3d8c1a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0085c)
- */
-
-
-function testcase() {
- return "ab\u0085c".trim() === "ab\u0085c";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0085c) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "ab\u0085c".trim() === "ab\u0085c"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js index 1b45f4214..196f79c69 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Babc)
- */
-
-
-function testcase() {
- if ("\u000Babc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Babc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Babc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js index 45c1241ac..9bf195509 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u00A0c)
- */
-
-
-function testcase() {
- if ("ab\u00A0c".trim() === "ab\u00A0c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u00A0c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u00A0c".trim() === "ab\u00A0c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js index 2b2ec8ca7..35195ff3f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u200Bc)
- */
-
-
-function testcase() {
- if ("ab\u200Bc".trim() === "ab\u200Bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u200Bc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u200Bc".trim() === "ab\u200Bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js index 7e3ba26f1..52432527e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\uFEFFc)
- */
-
-
-function testcase() {
- if ("ab\uFEFFc".trim() === "ab\uFEFFc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\uFEFFc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\uFEFFc".trim() === "ab\uFEFFc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js index 01e285095..d50c8b1e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Aabc)
- */
-
-
-function testcase() {
- if ("\u000Aabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Aabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Aabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js index 7b114197a..12b3b053a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Dabc)
- */
-
-
-function testcase() {
- if ("\u000Dabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Dabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Dabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js index 2d8d044c6..acc59622e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028abc)
- */
-
-
-function testcase() {
- if ("\u2028abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js index 133954a7b..9fc5a6062 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc)
- */
-
-
-function testcase() {
- if ("\u2029abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js index 27b373537..55efddd5f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000A)
- */
-
-
-function testcase() {
- if ("abc\u000A".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000A".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js index 9d1ead565..1b966ac9c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000D)
- */
-
-
-function testcase() {
- if ("abc\u000D".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000D".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js index 306f013a3..af9e5a406 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u2028)
- */
-
-
-function testcase() {
- if ("abc\u2028".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u2028".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js index ccd87bc8c..7e5f97334 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Cabc)
- */
-
-
-function testcase() {
- if ("\u000Cabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Cabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Cabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js index 88a63f0e8..173b9cfdf 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u2029)
- */
-
-
-function testcase() {
- if ("abc\u2029".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u2029".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js index a37979269..a2d08b275 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Aabc\u000A)
- */
-
-
-function testcase() {
- if ("\u000Aabc\u000A".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Aabc\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Aabc\u000A".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js index 0fec37e4d..febbe8c6d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Dabc\u000D)
- */
-
-
-function testcase() {
- if ("\u000Dabc\u000D".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Dabc\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Dabc\u000D".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js index 24e439830..ce584ccab 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028abc\u2028)
- */
-
-
-function testcase() {
- if ("\u2028abc\u2028".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028abc\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028abc\u2028".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js index 930df3678..69c56908f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc\u2029)
- */
-
-
-function testcase() {
- if ("\u2029abc\u2029".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029abc\u2029".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js index e1d75f23f..256d4be29 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000A\u000A)
- */
-
-
-function testcase() {
- if ("\u000A\u000A".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000A\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000A\u000A".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js index 5b8591533..5d2bb518f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000D\u000D)
- */
-
-
-function testcase() {
- if ("\u000D\u000D".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000D\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000D\u000D".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js index fc88fbfa5..8727b561e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028\u2028)
- */
-
-
-function testcase() {
- if ("\u2028\u2028".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028\u2028".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js index 8effdb4d7..2c4916cd7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029\u2029)
- */
-
-
-function testcase() {
- if ("\u2029\u2029".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029\u2029".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js index ce66909c9..25567ab4e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc as a multiline string)
- */
-
-
-function testcase() {
- var s = "\u2029\
- abc";
- if (s.trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc as a multiline string) +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = "\u2029\ + abc"; + if (s.trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js index d7481bad3..93e25d550 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020abc)
- */
-
-
-function testcase() {
- if ("\u0020abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js index 496f6bc9f..0b9c1bb94 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js
- * @description String.prototype.trim handles whitepace and lineterminators (string with just blanks)
- */
-
-
-function testcase() {
- if (" ".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (string with just blanks) +includes: [runTestCase.js] +---*/ + +function testcase() { + if (" ".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js index 3bbfd0638..7a7d6be2e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0abc)
- */
-
-
-function testcase() {
- if ("\u00A0abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); |