diff options
Diffstat (limited to 'test/suite/ch15/15.10/15.10.7/15.10.7.3')
5 files changed, 56 insertions, 62 deletions
diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js index daf56877d..ceec1b577 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.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.10/15.10.7/15.10.7.3/15.10.7.3-1.js
- * @description RegExp.prototype.ignoreCase is of type Boolean
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.ignoreCase)) === 'boolean';
- }
-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: RegExp.prototype.ignoreCase is of type Boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.ignoreCase)) === 'boolean'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js index 7bf678bfb..58698a971 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.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.10/15.10.7/15.10.7.3/15.10.7.3-2.js
- * @description RegExp.prototype.ignoreCase is a data property with default attribute values (false)
- */
-
-
-function testcase() {
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase');
-
- if (d.writable === false &&
- d.enumerable === false &&
- d.configurable === false) {
- 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: > + RegExp.prototype.ignoreCase is a data property with default + attribute values (false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase'); + + if (d.writable === false && + d.enumerable === false && + d.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js index da394d9ff..9938c0ac5 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance ignoreCase property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js - * @description Checking if varying the ignoreCase property fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute ReadOnly +description: Checking if varying the ignoreCase property fails +includes: [$FAIL.js] +---*/ __re = /a|b|c/; @@ -23,5 +22,3 @@ __re.ignoreCase = "shifted"; if (__re.ignoreCase !== __obj) { $ERROR('#2: __re = /a|b|c/; __obj = __re.ignoreCase; __re.ignoreCase = "shifted"; __re.ignoreCase === __obj. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js index be28f3197..675cd4c4d 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance ignoreCase property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js - * @description Checking if enumerating the ignoreCase property of RegExp instance fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute DontEnum +description: > + Checking if enumerating the ignoreCase property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("[|||||||]",""); @@ -28,5 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("[|||||||]",""); for (p in __re){ if (p==="ignoreCase") count++; } count === 0. Actual: ' + (count)); -} - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js index 28f85198d..d6a14a432 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance ignoreCase property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js - * @description Checking if deleting the ignoreCase property fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute DontDelete +description: Checking if deleting the ignoreCase property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,7 +23,3 @@ if ((delete __re.ignoreCase) !== false) { if (__re.hasOwnProperty('ignoreCase') !== true) { $ERROR('#2: __re = new RegExp;delete __re.ignoreCase === true; __re.hasOwnProperty(\'ignoreCase\') === true'); } - - - - |