summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-09 11:35:37 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 11:35:37 -0500
commita01de4a722d088055a7d84d8c691ddd7109edb34 (patch)
treef583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
parent7b01f9799f99851955f23c18c12e6651c1941022 (diff)
downloadqtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js26
1 files changed, 15 insertions, 11 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
index b375c31d9..d9e466e2d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
@@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
__re.lastIndex = __obj;
@@ -49,7 +53,7 @@ __re.lastIndex = __obj;
try {
$ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42")));
} catch (e) {
- if (e !== "intoint") {
- $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
- }
+ if (e !== "intoint") {
+ $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
+ }
}