diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js index f257edfed2..29ee8c9740 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 110xxxxx (n = 2) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 110xxxxx (n = 2) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js index 6fab82adb4..6f24ce1382 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js @@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js index e325f9124c..f3074dd7e0 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js @@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js index 45dd1001c3..111728ec84 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js index aea5219be4..0b2a71a005 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js index ff3e41b246..08ed1fe260 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 10) and string.charAt(k + 11)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 10) and string.charAt(k + 11)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.13_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.13_T1.js index 71e3bdd518..5dc57e0c4a 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.13_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.13_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.13_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.13_T2.js index 05272c6327..ab5fd749ac 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.13_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.13_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T1.js index a4aafcbeed..01fb4a61b1 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T2.js index 7ec0ce3f9e..77e546b840 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T3.js index 80065b0679..924aa49259 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T3.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T4.js b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T4.js index bf1277e3fd..22a217ed0b 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.14_T4.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.14_T4.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T1.js index 0341a55131..a47706e25a 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T2.js index 7f0c3df138..7ae642f0f0 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T3.js index 272a9969ea..80581bc806 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T3.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T4.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T4.js index cc7f4aa82e..e62d4a6647 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T4.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T4.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T5.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T5.js index 50b0132929..5e89c5f6a4 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T5.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T5.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T6.js b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T6.js index f6d94f2685..f9ccaad9b9 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.15_T6.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.15_T6.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js index 762ceec1d0..41296d696a 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js @@ -50,5 +50,5 @@ try { } if (result !== true) { - $ERROR('#1: If string.charAt(k) equal "%" and k + 2 >= string.length, throw URIError'); + throw new Test262Error('#1: If string.charAt(k) equal "%" and k + 2 >= string.length, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js index 4ca86cdf40..47e718c1e5 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If string.charAt(k+1) does not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If string.charAt(k+1) does not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js index 6b9dbbec48..b34de679c7 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If string.charAt(k+2) does not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If string.charAt(k+2) does not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.3_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.3_T1.js index c2c8fa25ba..79f5929ae4 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.3_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.3_T1.js @@ -28,11 +28,11 @@ for (var index = 0x80; index <= 0xBF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.3_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.3_T2.js index 3c4f2b0181..639b2fa37e 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.3_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.3_T2.js @@ -28,11 +28,11 @@ for (var index = 0xF8; index <= 0xFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.4_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.4_T1.js index 3201bc36c2..8542144734 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.4_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.4_T1.js @@ -35,11 +35,11 @@ for (var index = 0xC0; index <= 0xDF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.5_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.5_T1.js index 729c5c78e0..126fda8881 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.5_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.5_T1.js @@ -35,11 +35,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.6_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.6_T1.js index 829b7ca14c..165eed8cb5 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.6_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.6_T1.js @@ -35,11 +35,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.7_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.7_T1.js index c5a4a08a4a..63338be2fa 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.7_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.7_T1.js @@ -30,11 +30,11 @@ for (var index = 0xC0; index <= 0xDF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.8_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.8_T1.js index 446b99010d..c94670f612 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.8_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.8_T1.js @@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.8_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.8_T2.js index 866cc9d8ef..66ac74d517 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.8_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.8_T2.js @@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T1.js index 79d745fc62..f8b6257499 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T1.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T2.js index d1f1ce8532..fc11ffaece 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T2.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T3.js index 61ece159d1..c454561d31 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.9_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.9_T3.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js index 1994b59ed9..8b501fd195 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js @@ -17,11 +17,11 @@ for (var indexI = 0; indexI <= 65535; indexI++) { try { var str = String.fromCharCode(indexI); if (decodeURI(str) !== str) { - $ERROR('#' + hex + ' '); + throw new Test262Error('#' + hex + ' '); errorCount++; } } catch (e) { - $ERROR('#' + hex + ' '); + throw new Test262Error('#' + hex + ' '); errorCount++; } count++; @@ -29,5 +29,5 @@ for (var indexI = 0; indexI <= 65535; indexI++) { } if (errorCount > 0) { - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js index c7be56912e..2be070d681 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js @@ -32,11 +32,11 @@ l: if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -49,10 +49,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.3_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.3_T1.js index 362d5cb510..0635bb838b 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.3_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.3_T1.js @@ -30,11 +30,11 @@ for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.4_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.4_T1.js index 9a2762f1ad..4b634ed5b1 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.4_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.4_T1.js @@ -35,11 +35,11 @@ for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.5_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.5_T1.js index e0930ea8b6..4a08d4b421 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.5_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.5_T1.js @@ -39,11 +39,11 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -59,10 +59,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A3_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A3_T1.js index 202b87ad71..30e651f9c3 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A3_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A3_T1.js @@ -11,55 +11,55 @@ description: Checking all character in reservedURISet. HexDigit in [0..9, A..F] //CHECK#1 if (decodeURI("%3B") !== "%3B") { - $ERROR('#1: decodeURI("%3B") equal "%3B", not ";"'); + throw new Test262Error('#1: decodeURI("%3B") equal "%3B", not ";"'); } //CHECK#2 if (decodeURI("%2F") !== "%2F") { - $ERROR('#2: decodeURI("%2F") equal "%2F", not "/"'); + throw new Test262Error('#2: decodeURI("%2F") equal "%2F", not "/"'); } //CHECK#3 if (decodeURI("%3F") !== "%3F") { - $ERROR('#3: decodeURI("%3F") equal "%3F", not "?"'); + throw new Test262Error('#3: decodeURI("%3F") equal "%3F", not "?"'); } //CHECK#4 if (decodeURI("%3A") !== "%3A") { - $ERROR('#4: decodeURI("%3A") equal "%3A", not ":"'); + throw new Test262Error('#4: decodeURI("%3A") equal "%3A", not ":"'); } //CHECK#5 if (decodeURI("%40") !== "%40") { - $ERROR('#5: decodeURI("%40") equal "%40", not "@"'); + throw new Test262Error('#5: decodeURI("%40") equal "%40", not "@"'); } //CHECK#6 if (decodeURI("%26") !== "%26") { - $ERROR('#6: decodeURI("%26") equal "%26", not "&"'); + throw new Test262Error('#6: decodeURI("%26") equal "%26", not "&"'); } //CHECK#7 if (decodeURI("%3D") !== "%3D") { - $ERROR('#7.1: decodeURI("%3D") equal "%3D", not "="'); + throw new Test262Error('#7.1: decodeURI("%3D") equal "%3D", not "="'); } //CHECK#8 if (decodeURI("%2B") !== "%2B") { - $ERROR('#8.1: decodeURI("%2B") equal "%2B", not "+"'); + throw new Test262Error('#8.1: decodeURI("%2B") equal "%2B", not "+"'); } //CHECK#9 if (decodeURI("%24") !== "%24") { - $ERROR('#9: decodeURI("%24") equal "%24", not "$"'); + throw new Test262Error('#9: decodeURI("%24") equal "%24", not "$"'); } //CHECK#10 if (decodeURI("%2C") !== "%2C") { - $ERROR('#10: decodeURI("%2C") equal "%2C", not ","'); + throw new Test262Error('#10: decodeURI("%2C") equal "%2C", not ","'); } //CHECK#11 if (decodeURI("%23") !== "%23") { - $ERROR('#11: decodeURI("%23") equal "%23", not "#"'); + throw new Test262Error('#11: decodeURI("%23") equal "%23", not "#"'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A3_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A3_T2.js index 0ededb619c..d286636143 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A3_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A3_T2.js @@ -11,55 +11,55 @@ description: Checking all character in reservedURISet. HexDigit in [0..9, a..f] //CHECK#1 if (decodeURI("%3b") !== "%3b") { - $ERROR('#1: decodeURI("%3b") equal "%3b", not ";" or "%3B"'); + throw new Test262Error('#1: decodeURI("%3b") equal "%3b", not ";" or "%3B"'); } //CHECK#2 if (decodeURI("%2f") !== "%2f") { - $ERROR('#2: decodeURI("%2f") equal "%2f", not "/" or "%2F"'); + throw new Test262Error('#2: decodeURI("%2f") equal "%2f", not "/" or "%2F"'); } //CHECK#3 if (decodeURI("%3f") !== "%3f") { - $ERROR('#3: decodeURI("%3f") equal "%3f", not "?" or "%3F"'); + throw new Test262Error('#3: decodeURI("%3f") equal "%3f", not "?" or "%3F"'); } //CHECK#4 if (decodeURI("%3a") !== "%3a") { - $ERROR('#4: decodeURI("%3a") equal "%3a", not ":" or "%3A"'); + throw new Test262Error('#4: decodeURI("%3a") equal "%3a", not ":" or "%3A"'); } //CHECK#5 if (decodeURI("%40") !== "%40") { - $ERROR('#5: decodeURI("%40") equal "%40", not "@"'); + throw new Test262Error('#5: decodeURI("%40") equal "%40", not "@"'); } //CHECK#6 if (decodeURI("%26") !== "%26") { - $ERROR('#6: decodeURI("%26") equal "%26", not "&"'); + throw new Test262Error('#6: decodeURI("%26") equal "%26", not "&"'); } //CHECK#7 if (decodeURI("%3d") !== "%3d") { - $ERROR('#7.1: decodeURI("%3d") equal "%3d", not "=" or "%3D"'); + throw new Test262Error('#7.1: decodeURI("%3d") equal "%3d", not "=" or "%3D"'); } //CHECK#8 if (decodeURI("%2b") !== "%2b") { - $ERROR('#8.1: decodeURI("%2b") equal "%2b", not "+" or "%2B"'); + throw new Test262Error('#8.1: decodeURI("%2b") equal "%2b", not "+" or "%2B"'); } //CHECK#9 if (decodeURI("%24") !== "%24") { - $ERROR('#9: decodeURI("%24") equal "%24", not "$"'); + throw new Test262Error('#9: decodeURI("%24") equal "%24", not "$"'); } //CHECK#10 if (decodeURI("%2c") !== "%2c") { - $ERROR('#10: decodeURI("%2c") equal "%2c", not "," or "%2C"'); + throw new Test262Error('#10: decodeURI("%2c") equal "%2c", not "," or "%2C"'); } //CHECK#11 if (decodeURI("%23") !== "%23") { - $ERROR('#11: decodeURI("%23") equal "%23", not "#"'); + throw new Test262Error('#11: decodeURI("%23") equal "%23", not "#"'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A3_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A3_T3.js index d686f8be02..640c527c2e 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A3_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A3_T3.js @@ -11,10 +11,10 @@ description: Complex test //CHECK#1 if (decodeURI("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") !== "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") { - $ERROR('#1: decodeURI("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not ";/?:@&=+$,#"'); + throw new Test262Error('#1: decodeURI("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not ";/?:@&=+$,#"'); } //CHECK#2 if (decodeURI("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") !== "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") { - $ERROR('#2: decodeURI("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23", not ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"'); + throw new Test262Error('#2: decodeURI("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23", not ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A4_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A4_T1.js index 28694571c9..37ee73c1f4 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A4_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A4_T1.js @@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET //CHECK#1 if (decodeURI("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") { - $ERROR('#1: http://unipro.ru/0123456789'); + throw new Test262Error('#1: http://unipro.ru/0123456789'); } //CHECK#2 if (decodeURI("%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A") !== "ABCDEFGHIJKLMNOPQRSTUVWXYZ") { - $ERROR('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ'); + throw new Test262Error('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ'); } //CHECK#3 if (decodeURI("%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A") !== "abcdefghijklmnopqrstuvwxyz") { - $ERROR('#3: abcdefghijklmnopqrstuvwxyz'); + throw new Test262Error('#3: abcdefghijklmnopqrstuvwxyz'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A4_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A4_T2.js index d35b24e35f..c5c8a28cfe 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A4_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A4_T2.js @@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET //CHECK#1 if (decodeURI("http://ru.wikipedia.org/wiki/%d0%ae%D0%bd%D0%B8%D0%BA%D0%BE%D0%B4") !== "http://ru.wikipedia.org/wiki/Юникод") { - $ERROR('#1: http://ru.wikipedia.org/wiki/Юникод'); + throw new Test262Error('#1: http://ru.wikipedia.org/wiki/Юникод'); } //CHECK#2 if (decodeURI("http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8") !== "http://ru.wikipedia.org/wiki/Юникод#Ссылки") { - $ERROR('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); + throw new Test262Error('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); } //CHECK#3 if (decodeURI("http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0") !== "http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода") { - $ERROR('#3: http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода'); + throw new Test262Error('#3: http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A4_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A4_T3.js index fa4d67879e..866818a49e 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A4_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A4_T3.js @@ -9,20 +9,20 @@ description: Checking URL with Line Terminator //CHECK#1 if (decodeURI("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") { - $ERROR('#1: http://unipro.ru/%A0about'); + throw new Test262Error('#1: http://unipro.ru/%A0about'); } //CHECK#2 if (decodeURI("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") { - $ERROR('#2: http://unipro.ru/%0Babout'); + throw new Test262Error('#2: http://unipro.ru/%0Babout'); } //CHECK#3 if (decodeURI("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") { - $ERROR('#3: http://unipro.ru/%0Cabout'); + throw new Test262Error('#3: http://unipro.ru/%0Cabout'); } //CHECK#4 if (decodeURI("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") { - $ERROR('#4: http://unipro.ru/%0Dabout'); + throw new Test262Error('#4: http://unipro.ru/%0Dabout'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A4_T4.js b/test/built-ins/decodeURI/S15.1.3.1_A4_T4.js index 251a495ba0..e2cf192850 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A4_T4.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A4_T4.js @@ -9,20 +9,20 @@ description: Test some url //CHECK#1 if (decodeURI("") !== "") { - $ERROR('#1: ""'); + throw new Test262Error('#1: ""'); } //CHECK#2 if (decodeURI("http:%2f%2Funipro.ru") !== "http:%2f%2Funipro.ru") { - $ERROR('#2: http:%2f%2Funipro.ru'); + throw new Test262Error('#2: http:%2f%2Funipro.ru'); } //CHECK#3 if (decodeURI("http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") !== "http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") { - $ERROR('#3: http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork"'); + throw new Test262Error('#3: http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork"'); } //CHECK%234 if (decodeURI("http://en.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8%23Description") { - $ERROR('%234: http://en.wikipedia.org/wiki/UTF-8%23Description'); + throw new Test262Error('%234: http://en.wikipedia.org/wiki/UTF-8%23Description'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js index cc59fcaebd..4370688ecd 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (decodeURI.propertyIsEnumerable('length') !== false) { - $ERROR('#1: decodeURI.propertyIsEnumerable(\'length\') === false. Actual: ' + (decodeURI.propertyIsEnumerable('length'))); + throw new Test262Error('#1: decodeURI.propertyIsEnumerable(\'length\') === false. Actual: ' + (decodeURI.propertyIsEnumerable('length'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in decodeURI) { } if (result !== true) { - $ERROR('#2: result = true; for (p in decodeURI) { if (p === "length") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in decodeURI) { if (p === "length") result = false; } result === true;'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.2.js b/test/built-ins/decodeURI/S15.1.3.1_A5.2.js index ea65e5112e..c3d5a21538 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.2.js @@ -9,17 +9,17 @@ description: Checking use hasOwnProperty, delete //CHECK#1 if (decodeURI.hasOwnProperty('length') !== true) { - $ERROR('#1: decodeURI.hasOwnProperty(\'length\') === true. Actual: ' + (decodeURI.hasOwnProperty('length'))); + throw new Test262Error('#1: decodeURI.hasOwnProperty(\'length\') === true. Actual: ' + (decodeURI.hasOwnProperty('length'))); } delete decodeURI.length; //CHECK#2 if (decodeURI.hasOwnProperty('length') !== false) { - $ERROR('#2: delete decodeURI.length; decodeURI.hasOwnProperty(\'length\') === false. Actual: ' + (decodeURI.hasOwnProperty('length'))); + throw new Test262Error('#2: delete decodeURI.length; decodeURI.hasOwnProperty(\'length\') === false. Actual: ' + (decodeURI.hasOwnProperty('length'))); } //CHECK#3 if (decodeURI.length === undefined) { - $ERROR('#3: delete decodeURI.length; decodeURI.length !== undefined'); + throw new Test262Error('#3: delete decodeURI.length; decodeURI.length !== undefined'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.3.js b/test/built-ins/decodeURI/S15.1.3.1_A5.3.js index 51f3ff5523..d79b309e21 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.3.js @@ -12,5 +12,5 @@ includes: [propertyHelper.js] var x = decodeURI.length; verifyNotWritable(decodeURI, "length", null, Infinity); if (decodeURI.length !== x) { - $ERROR('#1: x = decodeURI.length; decodeURI.length = Infinity; decodeURI.length === x. Actual: ' + (decodeURI.length)); + throw new Test262Error('#1: x = decodeURI.length; decodeURI.length = Infinity; decodeURI.length === x. Actual: ' + (decodeURI.length)); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.4.js b/test/built-ins/decodeURI/S15.1.3.1_A5.4.js index b6e0138494..abc529166b 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.4.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.4.js @@ -9,5 +9,5 @@ description: decodeURI.length === 1 //CHECK#1 if (decodeURI.length !== 1) { - $ERROR('#1: decodeURI.length === 1. Actual: ' + (decodeURI.length)); + throw new Test262Error('#1: decodeURI.length === 1. Actual: ' + (decodeURI.length)); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js index 0164d7ea39..197fc1b285 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (this.propertyIsEnumerable('decodeURI') !== false) { - $ERROR('#1: this.propertyIsEnumerable(\'decodeURI\') === false. Actual: ' + (this.propertyIsEnumerable('decodeURI'))); + throw new Test262Error('#1: this.propertyIsEnumerable(\'decodeURI\') === false. Actual: ' + (this.propertyIsEnumerable('decodeURI'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in this) { } if (result !== true) { - $ERROR('#2: result = true; for (p in this) { if (p === "decodeURI") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in this) { if (p === "decodeURI") result = false; } result === true;'); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.6.js b/test/built-ins/decodeURI/S15.1.3.1_A5.6.js index 50020b6ae2..5a2eab791f 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.6.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.6.js @@ -9,5 +9,5 @@ description: Checking decodeURI.prototype //CHECK#1 if (decodeURI.prototype !== undefined) { - $ERROR('#1: decodeURI.prototype === undefined. Actual: ' + (decodeURI.prototype)); + throw new Test262Error('#1: decodeURI.prototype === undefined. Actual: ' + (decodeURI.prototype)); } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.7.js b/test/built-ins/decodeURI/S15.1.3.1_A5.7.js index b5ac21b545..750c171c33 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.7.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.7.js @@ -13,9 +13,9 @@ description: > try { new decodeURI(); - $ERROR('#1.1: new decodeURI() throw TypeError. Actual: ' + (new decodeURI())); + throw new Test262Error('#1.1: new decodeURI() throw TypeError. Actual: ' + (new decodeURI())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new decodeURI() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new decodeURI() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js index b61fd7861e..771824f7d7 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js @@ -14,7 +14,7 @@ var object = { } }; if (decodeURI(object) !== "[object Object]") { - $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURI(object) === [object Object]. Actual: ' + (decodeURI(object))); + throw new Test262Error('#1: var object = {valueOf: function() {return "%5E"}}; decodeURI(object) === [object Object]. Actual: ' + (decodeURI(object))); } //CHECK#2 @@ -27,7 +27,7 @@ var object = { } }; if (decodeURI(object) !== "^") { - $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); + throw new Test262Error('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#3 @@ -40,7 +40,7 @@ var object = { } }; if (decodeURI(object) !== "^") { - $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); + throw new Test262Error('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#4 @@ -54,14 +54,14 @@ try { } }; if (decodeURI(object) !== "^") { - $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); + throw new Test262Error('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } } catch (e) { if (e === "error") { - $ERROR('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) not throw "error"'); + throw new Test262Error('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) not throw "error"'); } else { - $ERROR('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) not throw Error. Actual: ' + (e)); + throw new Test262Error('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) not throw Error. Actual: ' + (e)); } } @@ -72,7 +72,7 @@ var object = { } }; if (decodeURI(object) !== "^") { - $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); + throw new Test262Error('#5: var object = {toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#6 @@ -85,7 +85,7 @@ var object = { } } if (decodeURI(object) !== "^") { - $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); + throw new Test262Error('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#7 @@ -99,11 +99,11 @@ try { } }; decodeURI(object); - $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object))); + throw new Test262Error('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object))); } catch (e) { if (e !== "error") { - $ERROR('#7.2: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (e)); + throw new Test262Error('#7.2: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (e)); } } @@ -118,10 +118,10 @@ try { } }; decodeURI(object); - $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object))); + throw new Test262Error('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (e)); + throw new Test262Error('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js index c99c80fa25..d4f819dc50 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 110xxxxx (n = 2) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 110xxxxx (n = 2) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js index a7814c8d46..dea01a9e6b 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js @@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js index 6ea084e9f9..822a5b3c96 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js @@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 1110xxxx (n = 3) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js index eab56cdfa9..7fea416a72 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 4) and string.charAt(k + 5)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js index f29c687db3..5c6ec76465 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 7) and string.charAt(k + 8)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js index ae06bc7227..0346032b58 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js @@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 10) and string.charAt(k + 11)) do not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If B = 11110xxx (n = 4) and (string.charAt(k + 10) and string.charAt(k + 11)) do not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T1.js index 7d60d39a7f..db5a3716fb 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T2.js index f50e3e857b..6b8e9ed818 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.13_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T1.js index 8481f342f5..3041e5ff94 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T2.js index ef52e7daff..10f3b46d89 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T3.js index 625a601e46..72ca7f42fd 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T3.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T4.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T4.js index 21d6f007cd..81e4198f9b 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T4.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.14_T4.js @@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T1.js index 7fc0656d25..63eacd7c16 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T1.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T2.js index 0ee408d5c7..0652855b57 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T2.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T3.js index e65bdfa2f1..075b4d5f1b 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T3.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T4.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T4.js index 6195135f89..7f0b47b9cc 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T4.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T4.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T5.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T5.js index d0281bca7d..e8d607ae5c 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T5.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T5.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T6.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T6.js index e799d4327f..81df14cbea 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T6.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.15_T6.js @@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = indexB; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js index 0de0f5848c..a567fdb668 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js @@ -50,5 +50,5 @@ try { } if (result !== true) { - $ERROR('#1: If string.charAt(k) equal "%" and k + 2 >= string.length, throw URIError'); + throw new Test262Error('#1: If string.charAt(k) equal "%" and k + 2 >= string.length, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js index 7d1cde7055..c49273986f 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If string.charAt(k+1) does not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If string.charAt(k+1) does not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js index 02babd38aa..501525528c 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js @@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) { } if (result !== true) { - $ERROR('#1: If string.charAt(k+2) does not represent hexadecimal digits, throw URIError'); + throw new Test262Error('#1: If string.charAt(k+2) does not represent hexadecimal digits, throw URIError'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T1.js index ed6b392594..7684be764a 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T1.js @@ -28,11 +28,11 @@ for (var index = 0x80; index <= 0xBF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T2.js index adc1d6a1eb..8423da433e 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.3_T2.js @@ -28,11 +28,11 @@ for (var index = 0xF8; index <= 0xFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.4_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.4_T1.js index aeb20a9563..0e6d9aeaba 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.4_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.4_T1.js @@ -35,11 +35,11 @@ for (var index = 0xC0; index <= 0xDF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.5_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.5_T1.js index 67002e5767..8333ada941 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.5_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.5_T1.js @@ -35,11 +35,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.6_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.6_T1.js index 05489cdf4f..cea2aa4293 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.6_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.6_T1.js @@ -35,11 +35,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -53,10 +53,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.7_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.7_T1.js index 16cec57dc4..82491f15cb 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.7_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.7_T1.js @@ -30,11 +30,11 @@ for (var index = 0xC0; index <= 0xDF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T1.js index de2908da0d..c7b2fc1ea2 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T1.js @@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T2.js index 76e1eacdeb..7cff5a4894 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.8_T2.js @@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T1.js index 9655d5565c..b8c6a0a369 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T1.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T2.js index c75640441e..a0d19db5e5 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T2.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T3.js index e69aaac1c8..83bf892682 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.9_T3.js @@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js index 56b968b1a7..5a784f681f 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js @@ -17,11 +17,11 @@ for (var indexI = 0; indexI <= 65535; indexI++) { try { var str = String.fromCharCode(indexI); if (decodeURIComponent(str) !== str) { - $ERROR('#' + hex + ' '); + throw new Test262Error('#' + hex + ' '); errorCount++; } } catch (e) { - $ERROR('#' + hex + ' '); + throw new Test262Error('#' + hex + ' '); errorCount++; } count++; @@ -29,5 +29,5 @@ for (var indexI = 0; indexI <= 65535; indexI++) { } if (errorCount > 0) { - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.2_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.2_T1.js index 201375d1a1..dce4d3736a 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.2_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.2_T1.js @@ -26,11 +26,11 @@ for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -43,10 +43,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.3_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.3_T1.js index b7e77b309f..94063c0c69 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.3_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.3_T1.js @@ -30,11 +30,11 @@ for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -48,10 +48,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.4_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.4_T1.js index d4daa62eed..639124e9f9 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.4_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.4_T1.js @@ -35,11 +35,11 @@ for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.5_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.5_T1.js index 1802d11662..b7895a7601 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.5_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.5_T1.js @@ -39,11 +39,11 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -59,10 +59,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T1.js index 5b4e96249c..0cdf4a5620 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T1.js @@ -11,55 +11,55 @@ description: > //CHECK#1 if (decodeURIComponent("%3B") !== ";") { - $ERROR('#1: decodeURIComponent("%3B") equal ";", not "%3B"'); + throw new Test262Error('#1: decodeURIComponent("%3B") equal ";", not "%3B"'); } //CHECK#2 if (decodeURIComponent("%2F") !== "/") { - $ERROR('#2: decodeURIComponent("%2F") equal "/", not "%2F"'); + throw new Test262Error('#2: decodeURIComponent("%2F") equal "/", not "%2F"'); } //CHECK#3 if (decodeURIComponent("%3F") !== "?") { - $ERROR('#3: decodeURIComponent("%3F") equal "?", not "%3F"'); + throw new Test262Error('#3: decodeURIComponent("%3F") equal "?", not "%3F"'); } //CHECK#4 if (decodeURIComponent("%3A") !== ":") { - $ERROR('#4: decodeURIComponent("%3A") equal ":", not "%3A"'); + throw new Test262Error('#4: decodeURIComponent("%3A") equal ":", not "%3A"'); } //CHECK#5 if (decodeURIComponent("%40") !== "@") { - $ERROR('#5: decodeURIComponent("%40") equal "@", not "%40"'); + throw new Test262Error('#5: decodeURIComponent("%40") equal "@", not "%40"'); } //CHECK#6 if (decodeURIComponent("%26") !== "&") { - $ERROR('#6: decodeURIComponent("%26") equal "&", not "%26"'); + throw new Test262Error('#6: decodeURIComponent("%26") equal "&", not "%26"'); } //CHECK#7 if (decodeURIComponent("%3D") !== "=") { - $ERROR('#7.1: decodeURIComponent("%3D") equal "=", not "%3D"'); + throw new Test262Error('#7.1: decodeURIComponent("%3D") equal "=", not "%3D"'); } //CHECK#8 if (decodeURIComponent("%2B") !== "+") { - $ERROR('#8.1: decodeURIComponent("%2B") equal "+", not "%2B"'); + throw new Test262Error('#8.1: decodeURIComponent("%2B") equal "+", not "%2B"'); } //CHECK#9 if (decodeURIComponent("%24") !== "$") { - $ERROR('#9: decodeURIComponent("%24") equal "$", not "%24"'); + throw new Test262Error('#9: decodeURIComponent("%24") equal "$", not "%24"'); } //CHECK#10 if (decodeURIComponent("%2C") !== ",") { - $ERROR('#10: decodeURIComponent("%2C") equal ",", not "%2C"'); + throw new Test262Error('#10: decodeURIComponent("%2C") equal ",", not "%2C"'); } //CHECK#11 if (decodeURIComponent("%23") !== "#") { - $ERROR('#11: decodeURIComponent("%23") equal "#", not "%23"'); + throw new Test262Error('#11: decodeURIComponent("%23") equal "#", not "%23"'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T2.js index e83f2925d5..9c17a22632 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T2.js @@ -11,55 +11,55 @@ description: > //CHECK#1 if (decodeURIComponent("%3b") !== ";") { - $ERROR('#1: decodeURIComponent("%3b") equal ";", not "%3B" or "%3b"'); + throw new Test262Error('#1: decodeURIComponent("%3b") equal ";", not "%3B" or "%3b"'); } //CHECK#2 if (decodeURIComponent("%2f") !== "/") { - $ERROR('#2: decodeURIComponent("%2f") equal "/", not "%2F" or "%2f"'); + throw new Test262Error('#2: decodeURIComponent("%2f") equal "/", not "%2F" or "%2f"'); } //CHECK#3 if (decodeURIComponent("%3f") !== "?") { - $ERROR('#3: decodeURIComponent("%3f") equal "?", not "%3F" or "%3f"'); + throw new Test262Error('#3: decodeURIComponent("%3f") equal "?", not "%3F" or "%3f"'); } //CHECK#4 if (decodeURIComponent("%3a") !== ":") { - $ERROR('#4: decodeURIComponent("%3a") equal ":", not "%3A" or "%3a"'); + throw new Test262Error('#4: decodeURIComponent("%3a") equal ":", not "%3A" or "%3a"'); } //CHECK#5 if (decodeURIComponent("%40") !== "@") { - $ERROR('#5: decodeURIComponent("%40") equal "@", not "%40"'); + throw new Test262Error('#5: decodeURIComponent("%40") equal "@", not "%40"'); } //CHECK#6 if (decodeURIComponent("%26") !== "&") { - $ERROR('#6: decodeURIComponent("%26") equal "&", not "%26"'); + throw new Test262Error('#6: decodeURIComponent("%26") equal "&", not "%26"'); } //CHECK#7 if (decodeURIComponent("%3d") !== "=") { - $ERROR('#7.1: decodeURIComponent("%3d") equal "=", not "%3D" or "%3d"'); + throw new Test262Error('#7.1: decodeURIComponent("%3d") equal "=", not "%3D" or "%3d"'); } //CHECK#8 if (decodeURIComponent("%2b") !== "+") { - $ERROR('#8.1: decodeURIComponent("%2b") equal "+", not "%2B" or "%2b"'); + throw new Test262Error('#8.1: decodeURIComponent("%2b") equal "+", not "%2B" or "%2b"'); } //CHECK#9 if (decodeURIComponent("%24") !== "$") { - $ERROR('#9: decodeURIComponent("%24") equal "$", not "%24"'); + throw new Test262Error('#9: decodeURIComponent("%24") equal "$", not "%24"'); } //CHECK#10 if (decodeURIComponent("%2c") !== ",") { - $ERROR('#10: decodeURIComponent("%2c") equal ",", not "%2C" or "%2c"'); + throw new Test262Error('#10: decodeURIComponent("%2c") equal ",", not "%2C" or "%2c"'); } //CHECK#11 if (decodeURIComponent("%23") !== "#") { - $ERROR('#11: decodeURIComponent("%23") equal "#", not "%23"'); + throw new Test262Error('#11: decodeURIComponent("%23") equal "#", not "%23"'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js index 2df2aaa9dd..497c103c77 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js @@ -9,10 +9,10 @@ description: Complex test //CHECK#1 if (decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") !== ";/?:@&=+$,#") { - $ERROR('#1: decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal ";/?:@&=+$,#", not "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"'); + throw new Test262Error('#1: decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal ";/?:@&=+$,#", not "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"'); } //CHECK#2 if (decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") !== ";/?:@&=+$,#") { - $ERROR('#2: decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23"'); + throw new Test262Error('#2: decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23"'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T1.js index 7ca95bb613..0c5b2a0ca8 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T1.js @@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET //CHECK#1 if (decodeURIComponent("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") { - $ERROR('#1: http://unipro.ru/0123456789'); + throw new Test262Error('#1: http://unipro.ru/0123456789'); } //CHECK#2 if (decodeURIComponent("%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A") !== "ABCDEFGHIJKLMNOPQRSTUVWXYZ") { - $ERROR('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ'); + throw new Test262Error('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ'); } //CHECK#3 if (decodeURIComponent("%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A") !== "abcdefghijklmnopqrstuvwxyz") { - $ERROR('#3: abcdefghijklmnopqrstuvwxyz'); + throw new Test262Error('#3: abcdefghijklmnopqrstuvwxyz'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T2.js index 91e43becc0..89b1f22aae 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T2.js @@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET //CHECK#1 if (decodeURIComponent("http://ru.wikipedia.org/wiki/%d0%ae%D0%bd%D0%B8%D0%BA%D0%BE%D0%B4") !== "http://ru.wikipedia.org/wiki/Юникод") { - $ERROR('#1: http://ru.wikipedia.org/wiki/Юникод'); + throw new Test262Error('#1: http://ru.wikipedia.org/wiki/Юникод'); } //CHECK#2 if (decodeURIComponent("http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8") !== "http://ru.wikipedia.org/wiki/Юникод#Ссылки") { - $ERROR('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); + throw new Test262Error('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); } //CHECK#3 if (decodeURIComponent("http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0") !== "http://ru.wikipedia.org/wiki/Юникод#Версии Юникода") { - $ERROR('#3: http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода'); + throw new Test262Error('#3: http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T3.js index c34f968689..238d68e326 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T3.js @@ -9,20 +9,20 @@ description: Checking URL with Line Terminator //CHECK#1 if (decodeURIComponent("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") { - $ERROR('#1: http://unipro.ru/%A0about'); + throw new Test262Error('#1: http://unipro.ru/%A0about'); } //CHECK#2 if (decodeURIComponent("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") { - $ERROR('#2: http://unipro.ru/%0Babout'); + throw new Test262Error('#2: http://unipro.ru/%0Babout'); } //CHECK#3 if (decodeURIComponent("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") { - $ERROR('#3: http://unipro.ru/%0Cabout'); + throw new Test262Error('#3: http://unipro.ru/%0Cabout'); } //CHECK#4 if (decodeURIComponent("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") { - $ERROR('#4: http://unipro.ru/%0Dabout'); + throw new Test262Error('#4: http://unipro.ru/%0Dabout'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T4.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T4.js index 8eb3b495e5..09b4b929c6 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T4.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T4.js @@ -9,20 +9,20 @@ description: Test some url //CHECK#1 if (decodeURIComponent("") !== "") { - $ERROR('#1: ""'); + throw new Test262Error('#1: ""'); } //CHECK#2 if (decodeURIComponent("http://unipro.ru") !== "http://unipro.ru") { - $ERROR('#2: http://unipro.ru'); + throw new Test262Error('#2: http://unipro.ru'); } //CHECK#3 if (decodeURIComponent("http:%2f%2Fwww.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") !== "http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork") { - $ERROR('#3: http:%2f%2Fwww.google.ru/support/jobs/bin/static.py%3Fpage3dwhy-ru.html%26sid3Dliveandwork"'); + throw new Test262Error('#3: http:%2f%2Fwww.google.ru/support/jobs/bin/static.py%3Fpage3dwhy-ru.html%26sid3Dliveandwork"'); } //CHECK#4 if (decodeURIComponent("http:%2F%2Fen.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8#Description") { - $ERROR('#4: http:%2F%2Fen.wikipedia.org/wiki/UTF-8%23Description'); + throw new Test262Error('#4: http:%2F%2Fen.wikipedia.org/wiki/UTF-8%23Description'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js index 1e712e4a17..c084e5f26a 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (decodeURIComponent.propertyIsEnumerable('length') !== false) { - $ERROR('#1: decodeURIComponent.propertyIsEnumerable(\'length\') === false. Actual: ' + (decodeURIComponent.propertyIsEnumerable('length'))); + throw new Test262Error('#1: decodeURIComponent.propertyIsEnumerable(\'length\') === false. Actual: ' + (decodeURIComponent.propertyIsEnumerable('length'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in decodeURIComponent) { } if (result !== true) { - $ERROR('#2: result = true; for (p in decodeURIComponent) { if (p === "length") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in decodeURIComponent) { if (p === "length") result = false; } result === true;'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.2.js index 6543490c78..024d63e486 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.2.js @@ -11,17 +11,17 @@ description: Checking use hasOwnProperty, delete //CHECK#1 if (decodeURIComponent.hasOwnProperty('length') !== true) { - $ERROR('#1: decodeURIComponent.hasOwnProperty(\'length\') === true. Actual: ' + (decodeURIComponent.hasOwnProperty('length'))); + throw new Test262Error('#1: decodeURIComponent.hasOwnProperty(\'length\') === true. Actual: ' + (decodeURIComponent.hasOwnProperty('length'))); } delete decodeURIComponent.length; //CHECK#2 if (decodeURIComponent.hasOwnProperty('length') !== false) { - $ERROR('#2: delete decodeURIComponent.length; decodeURIComponent.hasOwnProperty(\'length\') === false. Actual: ' + (decodeURIComponent.hasOwnProperty('length'))); + throw new Test262Error('#2: delete decodeURIComponent.length; decodeURIComponent.hasOwnProperty(\'length\') === false. Actual: ' + (decodeURIComponent.hasOwnProperty('length'))); } //CHECK#3 if (decodeURIComponent.length === undefined) { - $ERROR('#3: delete decodeURIComponent.length; decodeURIComponent.length !== undefined'); + throw new Test262Error('#3: delete decodeURIComponent.length; decodeURIComponent.length !== undefined'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.3.js index 44908aa7e5..a227bc8274 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.3.js @@ -12,5 +12,5 @@ includes: [propertyHelper.js] var x = decodeURIComponent.length; verifyNotWritable(decodeURIComponent, "length", null, Infinity); if (decodeURIComponent.length !== x) { - $ERROR('#1: x = decodeURIComponent.length; decodeURIComponent.length = Infinity; decodeURIComponent.length === x. Actual: ' + (decodeURIComponent.length)); + throw new Test262Error('#1: x = decodeURIComponent.length; decodeURIComponent.length = Infinity; decodeURIComponent.length === x. Actual: ' + (decodeURIComponent.length)); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.4.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.4.js index 7ff56bb8fe..6fb3499aeb 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.4.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.4.js @@ -9,5 +9,5 @@ description: decodeURIComponent.length === 1 //CHECK#1 if (decodeURIComponent.length !== 1) { - $ERROR('#1: decodeURIComponent.length === 1. Actual: ' + (decodeURIComponent.length)); + throw new Test262Error('#1: decodeURIComponent.length === 1. Actual: ' + (decodeURIComponent.length)); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js index 339d062ca6..ebdbbe63b6 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (this.propertyIsEnumerable('decodeURIComponent') !== false) { - $ERROR('#1: this.propertyIsEnumerable(\'decodeURIComponent\') === false. Actual: ' + (this.propertyIsEnumerable('decodeURIComponent'))); + throw new Test262Error('#1: this.propertyIsEnumerable(\'decodeURIComponent\') === false. Actual: ' + (this.propertyIsEnumerable('decodeURIComponent'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in this) { } if (result !== true) { - $ERROR('#2: result = true; for (p in this) { if (p === "decodeURIComponent") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in this) { if (p === "decodeURIComponent") result = false; } result === true;'); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.6.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.6.js index f0bca3d0e0..51f6e4cfc0 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.6.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.6.js @@ -9,5 +9,5 @@ description: Checking decodeURIComponent.prototype //CHECK#1 if (decodeURIComponent.prototype !== undefined) { - $ERROR('#1: decodeURIComponent.prototype === undefined. Actual: ' + (decodeURIComponent.prototype)); + throw new Test262Error('#1: decodeURIComponent.prototype === undefined. Actual: ' + (decodeURIComponent.prototype)); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.7.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.7.js index 9612bbbed8..0f11915d20 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.7.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.7.js @@ -13,9 +13,9 @@ description: > try { new decodeURIComponent(); - $ERROR('#1.1: new decodeURIComponent() throw TypeError. Actual: ' + (new decodeURIComponent())); + throw new Test262Error('#1.1: new decodeURIComponent() throw TypeError. Actual: ' + (new decodeURIComponent())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new decodeURIComponent() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new decodeURIComponent() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js index 3ef0372f62..82ad0bfc02 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js @@ -14,7 +14,7 @@ var object = { } }; if (decodeURIComponent(object) !== "[object Object]") { - $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURIComponent(object) === [object Object]. Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#1: var object = {valueOf: function() {return "%5E"}}; decodeURIComponent(object) === [object Object]. Actual: ' + (decodeURIComponent(object))); } //CHECK#2 @@ -27,7 +27,7 @@ var object = { } }; if (decodeURIComponent(object) !== "^") { - $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#3 @@ -40,7 +40,7 @@ var object = { } }; if (decodeURIComponent(object) !== "^") { - $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#4 @@ -54,14 +54,14 @@ try { } }; if (decodeURIComponent(object) !== "^") { - $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } } catch (e) { if (e === "error") { - $ERROR('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) not throw "error"'); + throw new Test262Error('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) not throw "error"'); } else { - $ERROR('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) not throw Error. Actual: ' + (e)); + throw new Test262Error('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) not throw Error. Actual: ' + (e)); } } @@ -72,7 +72,7 @@ var object = { } }; if (decodeURIComponent(object) !== "^") { - $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#5: var object = {toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#6 @@ -85,7 +85,7 @@ var object = { } } if (decodeURIComponent(object) !== "^") { - $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#7 @@ -99,11 +99,11 @@ try { } }; decodeURIComponent(object); - $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (decodeURIComponent(object))); } catch (e) { if (e !== "error") { - $ERROR('#7.2: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (e)); + throw new Test262Error('#7.2: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (e)); } } @@ -118,10 +118,10 @@ try { } }; decodeURIComponent(object); - $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (decodeURIComponent(object))); + throw new Test262Error('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (decodeURIComponent(object))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (e)); + throw new Test262Error('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A1.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A1.1_T1.js index a8c025184d..6819a52a28 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A1.1_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A1.1_T1.js @@ -28,11 +28,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A1.1_T2.js b/test/built-ins/encodeURI/S15.1.3.3_A1.1_T2.js index c7fabac76b..81ec97258b 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A1.1_T2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A1.1_T2.js @@ -28,11 +28,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A1.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A1.2_T1.js index 2446a5d64b..5b8485d9bf 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A1.2_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A1.2_T1.js @@ -30,11 +30,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A1.2_T2.js b/test/built-ins/encodeURI/S15.1.3.3_A1.2_T2.js index e24563eaf1..bee2ea2173 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A1.2_T2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A1.2_T2.js @@ -30,11 +30,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A1.3_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A1.3_T1.js index fbaa75f811..f4455f7e94 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A1.3_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A1.3_T1.js @@ -38,11 +38,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -56,10 +56,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js index c02b90486a..94591079f6 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js @@ -37,11 +37,11 @@ l: if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -54,10 +54,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js index 1ee2e3b2d3..fb3ea3c26b 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js @@ -29,11 +29,11 @@ l: if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.3_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.3_T1.js index 1131c27c3d..81659115a6 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.3_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.3_T1.js @@ -29,11 +29,11 @@ for (var index = 0x0800; index <= 0xD7FF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.4_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.4_T1.js index 6b9c8a716d..e944d0fb8c 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.4_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.4_T1.js @@ -39,11 +39,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -58,10 +58,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.4_T2.js b/test/built-ins/encodeURI/S15.1.3.3_A2.4_T2.js index f1b403dcf8..25f43333dc 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.4_T2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.4_T2.js @@ -39,11 +39,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -58,10 +58,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.5_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.5_T1.js index 7ea28a874c..edefd6e8a0 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.5_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.5_T1.js @@ -29,11 +29,11 @@ for (var index = 0xE000; index <= 0xFFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A3.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A3.1_T1.js index f5f3351739..427afed94e 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A3.1_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A3.1_T1.js @@ -13,6 +13,6 @@ var uriReserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","]; for (var indexC = 0; indexC < uriReserved.length; indexC++) { var str = uriReserved[indexC]; if (encodeURI(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T1.js index 1f0c5a1c53..948d47c36a 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T1.js @@ -13,6 +13,6 @@ var uriAlpha = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", for (var indexC = 0; indexC < uriAlpha.length; indexC++) { var str = uriAlpha[indexC]; if (encodeURI(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing ' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing ' + str); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T2.js b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T2.js index 77d359aad3..cd583a0b18 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T2.js @@ -13,6 +13,6 @@ var DecimalDigit = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; for (var indexC = 0; indexC < DecimalDigit.length; indexC++) { var str = DecimalDigit[indexC]; if (encodeURI(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T3.js b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T3.js index b08046a66c..8321484bb7 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A3.2_T3.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A3.2_T3.js @@ -13,6 +13,6 @@ var uriMark = ["-", "_", ".", "!", "~", "*", "'", "(", ")"]; for (var indexC = 0; indexC < uriMark.length; indexC++) { var str = uriMark[indexC]; if (encodeURI(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js index 69db87ad1f..f913ace688 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js @@ -8,5 +8,5 @@ description: encodeURI("#") === "#" ---*/ if (encodeURI("#") !== "#") { - $ERROR('#1: unescapedURISet containing "#"'); + throw new Test262Error('#1: unescapedURISet containing "#"'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A4_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A4_T1.js index e80c953aea..5ad4fbc72b 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A4_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A4_T1.js @@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET //CHECK#1 if (encodeURI("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") { - $ERROR('#1: http://unipro.ru/0123456789'); + throw new Test262Error('#1: http://unipro.ru/0123456789'); } //CHECK#2 if (encodeURI("aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ") !== "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ") { - $ERROR('#2: aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'); + throw new Test262Error('#2: aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'); } //CHECK#3 if (encodeURI("aA_bB-cC.dD!eE~fF*gG'hH(iI)jJ;kK/lL?mM:nN@oO&pP=qQ+rR$sS,tT9uU8vV7wW6xX5yY4zZ") !== "aA_bB-cC.dD!eE~fF*gG'hH(iI)jJ;kK/lL?mM:nN@oO&pP=qQ+rR$sS,tT9uU8vV7wW6xX5yY4zZ") { - $ERROR('#3: '); + throw new Test262Error('#3: '); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A4_T2.js b/test/built-ins/encodeURI/S15.1.3.3_A4_T2.js index 7e8fb7f2fa..11a88aa9be 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A4_T2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A4_T2.js @@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET //CHECK#1 if ((encodeURI("http://ru.wikipedia.org/wiki/Юникод") !== "http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4") && (encodeURI("http://ru.wikipedia.org/wiki/Юникод") !== "http://ru.wikipedia.org/wiki/" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4".toLowerCase())) { - $ERROR('#1: http://ru.wikipedia.org/wiki/Юникод'); + throw new Test262Error('#1: http://ru.wikipedia.org/wiki/Юникод'); } //CHECK#2 if ((encodeURI("http://ru.wikipedia.org/wiki/Юникод#Ссылки") !== "http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8") && (encodeURI("http://ru.wikipedia.org/wiki/Юникод#Ссылки") !== "http://ru.wikipedia.org/wiki/" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8".toLowerCase())) { - $ERROR('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); + throw new Test262Error('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); } //CHECK#3 if ((encodeURI("http://ru.wikipedia.org/wiki/Юникод#Версии Юникода") !== "http://ru.wikipedia.org/wiki/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0") && ((encodeURI("http://ru.wikipedia.org/wiki/Юникод#Версии Юникода") !== "http://ru.wikipedia.org/wiki/" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0".toLowerCase()))) { - $ERROR('#3: http://ru.wikipedia.org/wiki/Юникод#Версии Юникода'); + throw new Test262Error('#3: http://ru.wikipedia.org/wiki/Юникод#Версии Юникода'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A4_T3.js b/test/built-ins/encodeURI/S15.1.3.3_A4_T3.js index 9029a692bb..5f297a7f94 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A4_T3.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A4_T3.js @@ -9,20 +9,20 @@ description: Checking URL with Line Terminator //CHECK#1 if ((encodeURI("http://unipro.ru/\nabout") !== "http://unipro.ru/%0Aabout") && encodeURI("http://unipro.ru/\nabout") !== "http://unipro.ru/%0aabout") { - $ERROR('#1: http://unipro.ru/\\nabout'); + throw new Test262Error('#1: http://unipro.ru/\\nabout'); } //CHECK#2 if ((encodeURI("http://unipro.ru/\vabout") !== "http://unipro.ru/%0Babout") && encodeURI("http://unipro.ru/\vabout") !== "http://unipro.ru/%0babout") { - $ERROR('#2: http://unipro.ru/\\vabout'); + throw new Test262Error('#2: http://unipro.ru/\\vabout'); } //CHECK#3 if ((encodeURI("http://unipro.ru/\fabout") !== "http://unipro.ru/%0Cabout") && encodeURI("http://unipro.ru/\fabout") !== "http://unipro.ru/%0cabout") { - $ERROR('#3: http://unipro.ru/\\fabout'); + throw new Test262Error('#3: http://unipro.ru/\\fabout'); } //CHECK#4 if ((encodeURI("http://unipro.ru/\rabout") !== "http://unipro.ru/%0Dabout") && encodeURI("http://unipro.ru/\rabout") !== "http://unipro.ru/%0dabout") { - $ERROR('#4: http://unipro.ru/\\rabout'); + throw new Test262Error('#4: http://unipro.ru/\\rabout'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A4_T4.js b/test/built-ins/encodeURI/S15.1.3.3_A4_T4.js index b3733be7e3..b10b778d91 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A4_T4.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A4_T4.js @@ -9,20 +9,20 @@ description: Test some url //CHECK#1 if (encodeURI("") !== "") { - $ERROR('#1: ""'); + throw new Test262Error('#1: ""'); } //CHECK#2 if (encodeURI("http://unipro.ru") !== "http://unipro.ru") { - $ERROR('#2: http://unipro.ru'); + throw new Test262Error('#2: http://unipro.ru'); } //CHECK#3 if (encodeURI("http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork") !== "http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork") { - $ERROR('#3: http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork"'); + throw new Test262Error('#3: http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork"'); } //CHECK#4 if (encodeURI("http://en.wikipedia.org/wiki/UTF-8#Description") !== "http://en.wikipedia.org/wiki/UTF-8#Description") { - $ERROR('#4: http://en.wikipedia.org/wiki/UTF-8#Description'); + throw new Test262Error('#4: http://en.wikipedia.org/wiki/UTF-8#Description'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js index 0a363ecf0f..f53f050ec2 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (encodeURI.propertyIsEnumerable('length') !== false) { - $ERROR('#1: encodeURI.propertyIsEnumerable(\'length\') === false. Actual: ' + (encodeURI.propertyIsEnumerable('length'))); + throw new Test262Error('#1: encodeURI.propertyIsEnumerable(\'length\') === false. Actual: ' + (encodeURI.propertyIsEnumerable('length'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in encodeURI) { } if (result !== true) { - $ERROR('#2: result = true; for (p in encodeURI) { if (p === "length") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in encodeURI) { if (p === "length") result = false; } result === true;'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.2.js b/test/built-ins/encodeURI/S15.1.3.3_A5.2.js index cd7899afe3..92bbcbbad8 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.2.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.2.js @@ -9,17 +9,17 @@ description: Checking use hasOwnProperty, delete //CHECK#1 if (encodeURI.hasOwnProperty('length') !== true) { - $ERROR('#1: encodeURI.hasOwnProperty(\'length\') === true. Actual: ' + (encodeURI.hasOwnProperty('length'))); + throw new Test262Error('#1: encodeURI.hasOwnProperty(\'length\') === true. Actual: ' + (encodeURI.hasOwnProperty('length'))); } delete encodeURI.length; //CHECK#2 if (encodeURI.hasOwnProperty('length') !== false) { - $ERROR('#2: delete encodeURI.length; encodeURI.hasOwnProperty(\'length\') === false. Actual: ' + (encodeURI.hasOwnProperty('length'))); + throw new Test262Error('#2: delete encodeURI.length; encodeURI.hasOwnProperty(\'length\') === false. Actual: ' + (encodeURI.hasOwnProperty('length'))); } //CHECK#3 if (encodeURI.length === undefined) { - $ERROR('#3: delete encodeURI.length; encodeURI.length !== undefined'); + throw new Test262Error('#3: delete encodeURI.length; encodeURI.length !== undefined'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.3.js b/test/built-ins/encodeURI/S15.1.3.3_A5.3.js index 7e14334b59..afd81708db 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.3.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.3.js @@ -12,5 +12,5 @@ includes: [propertyHelper.js] var x = encodeURI.length; verifyNotWritable(encodeURI, "length", null, Infinity); if (encodeURI.length !== x) { - $ERROR('#1: x = encodeURI.length; encodeURI.length = Infinity; encodeURI.length === x. Actual: ' + (encodeURI.length)); + throw new Test262Error('#1: x = encodeURI.length; encodeURI.length = Infinity; encodeURI.length === x. Actual: ' + (encodeURI.length)); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.4.js b/test/built-ins/encodeURI/S15.1.3.3_A5.4.js index a7b11554a1..b9c126642c 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.4.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.4.js @@ -9,5 +9,5 @@ description: encodeURI.length === 1 //CHECK#1 if (encodeURI.length !== 1) { - $ERROR('#1: encodeURI.length === 1. Actual: ' + (encodeURI.length)); + throw new Test262Error('#1: encodeURI.length === 1. Actual: ' + (encodeURI.length)); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js index 7e0a76f484..f7a4571f7c 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (this.propertyIsEnumerable('encodeURI') !== false) { - $ERROR('#1: this.propertyIsEnumerable(\'encodeURI\') === false. Actual: ' + (this.propertyIsEnumerable('encodeURI'))); + throw new Test262Error('#1: this.propertyIsEnumerable(\'encodeURI\') === false. Actual: ' + (this.propertyIsEnumerable('encodeURI'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in this) { } if (result !== true) { - $ERROR('#2: result = true; for (p in this) { if (p === "encodeURI") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in this) { if (p === "encodeURI") result = false; } result === true;'); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.6.js b/test/built-ins/encodeURI/S15.1.3.3_A5.6.js index 9358f48616..3287f66101 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.6.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.6.js @@ -9,5 +9,5 @@ description: Checking encodeURI.prototype //CHECK#1 if (encodeURI.prototype !== undefined) { - $ERROR('#1: encodeURI.prototype === undefined. Actual: ' + (encodeURI.prototype)); + throw new Test262Error('#1: encodeURI.prototype === undefined. Actual: ' + (encodeURI.prototype)); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.7.js b/test/built-ins/encodeURI/S15.1.3.3_A5.7.js index e90178d2db..5060c4db7f 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.7.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.7.js @@ -13,9 +13,9 @@ description: > try { new encodeURI(); - $ERROR('#1.1: new encodeURI() throw TypeError. Actual: ' + (new encodeURI())); + throw new Test262Error('#1.1: new encodeURI() throw TypeError. Actual: ' + (new encodeURI())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new encodeURI() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new encodeURI() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js index e44fb8b377..096ac7f254 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js @@ -14,7 +14,7 @@ var object = { } }; if (encodeURI(object) !== "%5Bobject%20Object%5D") { - $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURI(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURI(object))); + throw new Test262Error('#1: var object = {valueOf: function() {return "^"}}; encodeURI(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURI(object))); } //CHECK#2 @@ -27,7 +27,7 @@ var object = { } }; if (encodeURI(object) !== "%5E") { - $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); + throw new Test262Error('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#3 @@ -40,7 +40,7 @@ var object = { } }; if (encodeURI(object) !== "%5E") { - $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); + throw new Test262Error('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#4 @@ -54,14 +54,14 @@ try { } }; if (encodeURI(object) !== "%5E") { - $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); + throw new Test262Error('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } } catch (e) { if (e === "error") { - $ERROR('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) not throw "error"'); + throw new Test262Error('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) not throw "error"'); } else { - $ERROR('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) not throw Error. Actual: ' + (e)); + throw new Test262Error('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) not throw Error. Actual: ' + (e)); } } @@ -72,7 +72,7 @@ var object = { } }; if (encodeURI(object) !== "%5E") { - $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); + throw new Test262Error('#5: var object = {toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#6 @@ -85,7 +85,7 @@ var object = { } } if (encodeURI(object) !== "%5E") { - $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); + throw new Test262Error('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#7 @@ -99,11 +99,11 @@ try { } }; encodeURI(object); - $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (encodeURI(object))); + throw new Test262Error('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (encodeURI(object))); } catch (e) { if (e !== "error") { - $ERROR('#7.2: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (e)); + throw new Test262Error('#7.2: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (e)); } } @@ -118,10 +118,10 @@ try { } }; encodeURI(object); - $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (encodeURI(object))); + throw new Test262Error('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (encodeURI(object))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (e)); + throw new Test262Error('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T1.js index fbc6a16ca6..a00e3f2adb 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T1.js @@ -28,11 +28,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T2.js index 051a0eb7d2..28cd7004dc 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.1_T2.js @@ -28,11 +28,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -45,10 +45,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T1.js index 30fbf39088..5acb4d7e60 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T1.js @@ -30,11 +30,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T2.js index 5780486c10..ff008c4682 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.2_T2.js @@ -30,11 +30,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -47,10 +47,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.3_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.3_T1.js index c2fb51430b..8237ef93a7 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A1.3_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A1.3_T1.js @@ -38,11 +38,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -56,10 +56,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js index e3aa932752..dadc149e23 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js @@ -32,11 +32,11 @@ l: if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -49,10 +49,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js index 8c62cec07c..5a00b61bcc 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js @@ -29,11 +29,11 @@ l: if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.3_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.3_T1.js index b11563e565..7dabebd921 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.3_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.3_T1.js @@ -29,11 +29,11 @@ for (var index = 0x0800; index <= 0xD7FF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T1.js index 04c942ce47..67721fec05 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T1.js @@ -39,11 +39,11 @@ for (var index = 0xD800; index <= 0xDBFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -58,10 +58,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T2.js index 858528b153..0ed0cc11ba 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.4_T2.js @@ -39,11 +39,11 @@ for (var index = 0xDC00; index <= 0xDFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -58,10 +58,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.5_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.5_T1.js index d4f021c90a..8d0f15d610 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.5_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.5_T1.js @@ -29,11 +29,11 @@ for (var index = 0xE000; index <= 0xFFFF; index++) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } indexO = index; } @@ -46,10 +46,10 @@ if (errorCount > 0) { if ((indexP - indexO) !== 0) { var hexP = decimalToHexString(indexP); var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); + throw new Test262Error('#' + hexO + '-' + hexP + ' '); } else { var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); + throw new Test262Error('#' + hexP + ' '); } - $ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); + throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.1_T1.js index fb6bf75d8b..a2239e7344 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.1_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.1_T1.js @@ -12,6 +12,6 @@ var uriReserved_ = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","]; for (var indexC = 0; indexC < 10; indexC++) { var str = uriReserved_[indexC]; if (encodeURIComponent(str) !== uriReserved[indexC]) { - $ERROR('#' + (indexC + 1) + ': unescapedURIComponentSet not containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURIComponentSet not containing' + str); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T1.js index 80f444d7c0..2a143bda1f 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T1.js @@ -13,6 +13,6 @@ var uriAlpha = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", for (var indexC = 0; indexC < uriAlpha.length; indexC++) { var str = uriAlpha[indexC]; if (encodeURIComponent(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing ' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing ' + str); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T2.js index 89f4547096..478d7a8bb0 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T2.js @@ -13,6 +13,6 @@ var DecimalDigit = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; for (var indexC = 0; indexC < DecimalDigit.length; indexC++) { var str = DecimalDigit[indexC]; if (encodeURIComponent(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T3.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T3.js index d1257a4a5b..76c99cb374 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T3.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.2_T3.js @@ -13,6 +13,6 @@ var uriMark = ["-", "_", ".", "!", "~", "*", "'", "(", ")"]; for (var indexC = 0; indexC < uriMark.length; indexC++) { var str = uriMark[indexC]; if (encodeURIComponent(str) !== str) { - $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); + throw new Test262Error('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js index 4773c6d3c4..e8bbcd3d80 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js @@ -8,5 +8,5 @@ description: encodeURIComponent("#") === "%23" ---*/ if (encodeURIComponent("#") !== "%23") { - $ERROR('#1: unescapedURIComponentSet not containing "%23"'); + throw new Test262Error('#1: unescapedURIComponentSet not containing "%23"'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T1.js index dcb7c887df..78bd535955 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T1.js @@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET //CHECK#1 if (encodeURIComponent("http://unipro.ru/0123456789") !== "http%3A%2F%2Funipro.ru%2F0123456789") { - $ERROR('#1: http://unipro.ru/0123456789'); + throw new Test262Error('#1: http://unipro.ru/0123456789'); } //CHECK#2 if (encodeURIComponent("aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ") !== "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ") { - $ERROR('#2: aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'); + throw new Test262Error('#2: aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'); } //CHECK#3 if (encodeURIComponent(";/?:@&=+$,") !== "%3B%2F%3F%3A%40%26%3D%2B%24%2C") { - $ERROR('#3: '); + throw new Test262Error('#3: '); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T2.js index d46beac0ff..869d42dca2 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T2.js @@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET //CHECK#1 if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4") && (encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4".toLowerCase())) { - $ERROR('#1: http://ru.wikipedia.org/wiki/Юникод'); + throw new Test262Error('#1: http://ru.wikipedia.org/wiki/Юникод'); } //CHECK#2 if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод#Ссылки") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8") && (encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод#Ссылки") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8".toLowerCase())) { - $ERROR('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); + throw new Test262Error('#2: http://ru.wikipedia.org/wiki/Юникод#Ссылки'); } //CHECK#3 if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод#Версии Юникода") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0") && ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0".toLowerCase()))) { - $ERROR('#3: http://ru.wikipedia.org/wiki/Юникод#Версии Юникода'); + throw new Test262Error('#3: http://ru.wikipedia.org/wiki/Юникод#Версии Юникода'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T3.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T3.js index 5cbb98fda3..0c0513eb33 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T3.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T3.js @@ -9,20 +9,20 @@ description: Checking URL with Line Terminator //CHECK#1 if ((encodeURIComponent("http://unipro.ru/\nabout") !== "http%3A%2F%2Funipro.ru%2F%0Aabout") && encodeURIComponent("http://unipro.ru/\nabout") !== "http%3A%2F%2Funipro.ru%2F%0aabout") { - $ERROR('#1: http://unipro.ru/\\nabout'); + throw new Test262Error('#1: http://unipro.ru/\\nabout'); } //CHECK#2 if ((encodeURIComponent("http://unipro.ru/\vabout") !== "http%3A%2F%2Funipro.ru%2F%0Babout") && encodeURIComponent("http://unipro.ru/\vabout") !== "http%3A%2F%2Funipro.ru%2F%0babout") { - $ERROR('#2: http://unipro.ru/\\vabout'); + throw new Test262Error('#2: http://unipro.ru/\\vabout'); } //CHECK#3 if ((encodeURIComponent("http://unipro.ru/\fabout") !== "http%3A%2F%2Funipro.ru%2F%0Cabout") && encodeURIComponent("http://unipro.ru/\fabout") !== "http%3A%2F%2Funipro.ru%2F%0cabout") { - $ERROR('#3: http://unipro.ru/\\fabout'); + throw new Test262Error('#3: http://unipro.ru/\\fabout'); } //CHECK#4 if ((encodeURIComponent("http://unipro.ru/\rabout") !== "http%3A%2F%2Funipro.ru%2F%0Dabout") && encodeURIComponent("http://unipro.ru/\rabout") !== "http%3A%2F%2Funipro.ru%2F%0dabout") { - $ERROR('#4: http://unipro.ru/\\rabout'); + throw new Test262Error('#4: http://unipro.ru/\\rabout'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T4.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T4.js index d1a18115fc..9eea514c72 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T4.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A4_T4.js @@ -9,20 +9,20 @@ description: Test some url //CHECK#1 if (encodeURIComponent("") !== "") { - $ERROR('#1: ""'); + throw new Test262Error('#1: ""'); } //CHECK#2 if (encodeURIComponent("http://unipro.ru") !== "http%3A%2F%2Funipro.ru") { - $ERROR('#2: http://unipro.ru'); + throw new Test262Error('#2: http://unipro.ru'); } //CHECK#3 if (encodeURIComponent("http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork") !== "http%3A%2F%2Fwww.google.ru%2Fsupport%2Fjobs%2Fbin%2Fstatic.py%3Fpage%3Dwhy-ru.html%26sid%3Dliveandwork") { - $ERROR('#3: http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork"'); + throw new Test262Error('#3: http://www.google.ru/support/jobs/bin/static.py?page=why-ru.html&sid=liveandwork"'); } //CHECK#4 if (encodeURIComponent("http://en.wikipedia.org/wiki/UTF-8#Description") !== "http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUTF-8%23Description") { - $ERROR('#4: http://en.wikipedia.org/wiki/UTF-8#Description'); + throw new Test262Error('#4: http://en.wikipedia.org/wiki/UTF-8#Description'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js index 7b1283cf0c..3911a71aae 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (encodeURIComponent.propertyIsEnumerable('length') !== false) { - $ERROR('#1: encodeURIComponent.propertyIsEnumerable(\'length\') === false. Actual: ' + (encodeURIComponent.propertyIsEnumerable('length'))); + throw new Test262Error('#1: encodeURIComponent.propertyIsEnumerable(\'length\') === false. Actual: ' + (encodeURIComponent.propertyIsEnumerable('length'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in encodeURIComponent) { } if (result !== true) { - $ERROR('#2: result = true; for (p in encodeURIComponent) { if (p === "length") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in encodeURIComponent) { if (p === "length") result = false; } result === true;'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.2.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.2.js index d703b50ab5..d17f6ecdbd 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.2.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.2.js @@ -11,17 +11,17 @@ description: Checking use hasOwnProperty, delete //CHECK#1 if (encodeURIComponent.hasOwnProperty('length') !== true) { - $ERROR('#1: encodeURIComponent.hasOwnProperty(\'length\') === true. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); + throw new Test262Error('#1: encodeURIComponent.hasOwnProperty(\'length\') === true. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); } delete encodeURIComponent.length; //CHECK#2 if (encodeURIComponent.hasOwnProperty('length') !== false) { - $ERROR('#2: delete encodeURIComponent.length; encodeURIComponent.hasOwnProperty(\'length\') === false. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); + throw new Test262Error('#2: delete encodeURIComponent.length; encodeURIComponent.hasOwnProperty(\'length\') === false. Actual: ' + (encodeURIComponent.hasOwnProperty('length'))); } //CHECK#3 if (encodeURIComponent.length === undefined) { - $ERROR('#3: delete encodeURIComponent.length; encodeURIComponent.length !== undefined'); + throw new Test262Error('#3: delete encodeURIComponent.length; encodeURIComponent.length !== undefined'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.3.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.3.js index 7f5e783e63..cd1b7feb77 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.3.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.3.js @@ -12,5 +12,5 @@ includes: [propertyHelper.js] var x = encodeURIComponent.length; verifyNotWritable(encodeURIComponent, "length", null, Infinity); if (encodeURIComponent.length !== x) { - $ERROR('#1: x = encodeURIComponent.length; encodeURIComponent.length = Infinity; encodeURIComponent.length === x. Actual: ' + (encodeURIComponent.length)); + throw new Test262Error('#1: x = encodeURIComponent.length; encodeURIComponent.length = Infinity; encodeURIComponent.length === x. Actual: ' + (encodeURIComponent.length)); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.4.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.4.js index 94c76992d9..a7136141f7 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.4.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.4.js @@ -9,5 +9,5 @@ description: encodeURIComponent.length === 1 //CHECK#1 if (encodeURIComponent.length !== 1) { - $ERROR('#1: encodeURIComponent.length === 1. Actual: ' + (encodeURIComponent.length)); + throw new Test262Error('#1: encodeURIComponent.length === 1. Actual: ' + (encodeURIComponent.length)); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js index 0511111641..3dd7f87fb6 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js @@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in //CHECK#1 if (this.propertyIsEnumerable('encodeURIComponent') !== false) { - $ERROR('#1: this.propertyIsEnumerable(\'encodeURIComponent\') === false. Actual: ' + (this.propertyIsEnumerable('encodeURIComponent'))); + throw new Test262Error('#1: this.propertyIsEnumerable(\'encodeURIComponent\') === false. Actual: ' + (this.propertyIsEnumerable('encodeURIComponent'))); } //CHECK#2 @@ -21,5 +21,5 @@ for (var p in this) { } if (result !== true) { - $ERROR('#2: result = true; for (p in this) { if (p === "encodeURIComponent") result = false; } result === true;'); + throw new Test262Error('#2: result = true; for (p in this) { if (p === "encodeURIComponent") result = false; } result === true;'); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.6.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.6.js index 7027468c2a..6d53bb777b 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.6.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.6.js @@ -9,5 +9,5 @@ description: Checking encodeURIComponent.prototype //CHECK#1 if (encodeURIComponent.prototype !== undefined) { - $ERROR('#1: encodeURIComponent.prototype === undefined. Actual: ' + (encodeURIComponent.prototype)); + throw new Test262Error('#1: encodeURIComponent.prototype === undefined. Actual: ' + (encodeURIComponent.prototype)); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.7.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.7.js index 84f9388d0c..25439e77b0 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.7.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.7.js @@ -13,9 +13,9 @@ description: > try { new encodeURIComponent(); - $ERROR('#1.1: new encodeURIComponent() throw TypeError. Actual: ' + (new encodeURIComponent())); + throw new Test262Error('#1.1: new encodeURIComponent() throw TypeError. Actual: ' + (new encodeURIComponent())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new encodeURIComponent() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new encodeURIComponent() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js index dedf6d03b1..de878fad84 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js @@ -14,7 +14,7 @@ var object = { } }; if (encodeURIComponent(object) !== "%5Bobject%20Object%5D") { - $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURIComponent(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#1: var object = {valueOf: function() {return "^"}}; encodeURIComponent(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURIComponent(object))); } //CHECK#2 @@ -27,7 +27,7 @@ var object = { } }; if (encodeURIComponent(object) !== "%5E") { - $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#3 @@ -40,7 +40,7 @@ var object = { } }; if (encodeURIComponent(object) !== "%5E") { - $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#4 @@ -54,14 +54,14 @@ try { } }; if (encodeURIComponent(object) !== "%5E") { - $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } } catch (e) { if (e === "error") { - $ERROR('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) not throw "error"'); + throw new Test262Error('#4.2: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) not throw "error"'); } else { - $ERROR('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) not throw Error. Actual: ' + (e)); + throw new Test262Error('#4.3: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) not throw Error. Actual: ' + (e)); } } @@ -72,7 +72,7 @@ var object = { } }; if (encodeURIComponent(object) !== "%5E") { - $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#5: var object = {toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#6 @@ -85,7 +85,7 @@ var object = { } } if (encodeURIComponent(object) !== "%5E") { - $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#7 @@ -99,11 +99,11 @@ try { } }; encodeURIComponent(object); - $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (encodeURIComponent(object))); } catch (e) { if (e !== "error") { - $ERROR('#7.2: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (e)); + throw new Test262Error('#7.2: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (e)); } } @@ -118,10 +118,10 @@ try { } }; encodeURIComponent(object); - $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (encodeURIComponent(object))); + throw new Test262Error('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (encodeURIComponent(object))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (e)); + throw new Test262Error('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (e)); } }