aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js56
1 files changed, 0 insertions, 56 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js b/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js
deleted file mode 100644
index a878dcb53..000000000
--- a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js
+++ /dev/null
@@ -1,56 +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.6.2_A3_T1;
-* @section: 15.10.6.2, 13.2;
-* @assertion: RegExp.prototype.exec behavior depends on global property.
-* If global is true and lastIndex not changed manually,
-* next exec calling start to match from position where current match finished;
-* @description: RegExp is /(?:ab|cd)\d?/g and tested string is "ab cd2 ab34 cd";
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.10.6.2_A3_T1",
-
-path: "TestCases/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A3_T1.js",
-
-assertion: "RegExp.prototype.exec behavior depends on global property.",
-
-description: "RegExp is /(?:ab|cd)\\d?/g and tested string is \"ab cd2 ab34 cd\"",
-
-test: function testcase() {
- __re = /(?:ab|cd)\d?/g;
-
-__matched = [];
-
-__expected = ["ab", "cd2", "ab3", "cd"];
-
-do{
- __executed = __re.exec("ab cd2 ab34 cd");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
-
-//CHECK#1
-if (__expected.length !== __matched.length) {
- $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length));
-}
-
-//CHECK#2
-for(var index=0; index<__expected.length; index++) {
- if (__expected[index] !== __matched[index]) {
- $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
- }
-}
-
-
- }
-});
-