summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2018-02-09 09:09:47 -0800
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 12:09:47 -0500
commitf95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch)
treed403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
parenta01de4a722d088055a7d84d8c691ddd7109edb34 (diff)
downloadqtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
Diffstat (limited to 'test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js')
-rw-r--r--test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
index 3d1269637..3f6695e9b 100644
--- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
+++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js
@@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
-var __split = __instance.split(1, 100);
+var __split = __instance.split(1,100);
-var __expected = ["", "00", "", "", "", "22", "33", "44", "60"];
+var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__split.constructor !== Array) {
- $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor);
+ $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,17 +30,17 @@ if (__split.constructor !== Array) {
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (__split.length !== __expected.length) {
- $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length);
+ $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length );
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
- $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]);
- }
+ $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] );
+ }
}
//
//////////////////////////////////////////////////////////////////////////////