aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js b/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js
deleted file mode 100644
index 312e71d26..000000000
--- a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S15.10.7.5_A8;
-* @section: 15.10.7.5;
-* @assertion: The RegExp instance lastIndex property has the attribute DontEnum;
-* @description: Checking if enumerating the lastIndex property of RegExp instance fails;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.10.7.5_A8",
-
-path: "TestCases/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.5_lastIndex/S15.10.7.5_A8.js",
-
-assertion: "The RegExp instance lastIndex property has the attribute DontEnum",
-
-description: "Checking if enumerating the lastIndex property of RegExp instance fails",
-
-test: function testcase() {
- __re = new RegExp("A?B");
-
-//CHECK#0
-if (__re.hasOwnProperty('lastIndex') !== true) {
- $FAIL('#0: __re = new RegExp("A?B"); __re.hasOwnProperty(\'lastIndex\') === true');
-}
-
- //CHECK#1
-if (__re.propertyIsEnumerable('lastIndex') !== false) {
- $ERROR('#1: __re = new RegExp("A?B"); __re.propertyIsEnumerable(\'lastIndex\') === false');
-}
-
- //CHECK#2
-count = 0
-for (p in __re){
- if (p==="lastIndex") count++
-}
-
-if (count !== 0) {
- $ERROR('#2: count = 0; __re = new RegExp("A?B"); for (p in __re){ if (p==="lastIndex") count++; } count === 0. Actual: ' + (count));
-}
-
- }
-});
-