chore: migrate $ERROR -> throw new Test262Error in test/built-ins/decode*,test/built-ins/encode* (#3080)

This commit is contained in:
Rick Waldron 2021-07-21 15:37:52 -04:00 committed by GitHub
parent 488eb365db
commit 1a30a69d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
160 changed files with 614 additions and 614 deletions

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -50,5 +50,5 @@ try {
} }
if (result !== true) { 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');
} }

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -28,11 +28,11 @@ for (var index = 0x80; index <= 0xBF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -45,10 +45,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -28,11 +28,11 @@ for (var index = 0xF8; index <= 0xFF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -45,10 +45,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xC0; index <= 0xDF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -30,11 +30,11 @@ for (var index = 0xC0; index <= 0xDF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -47,10 +47,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -17,11 +17,11 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
try { try {
var str = String.fromCharCode(indexI); var str = String.fromCharCode(indexI);
if (decodeURI(str) !== str) { if (decodeURI(str) !== str) {
$ERROR('#' + hex + ' '); throw new Test262Error('#' + hex + ' ');
errorCount++; errorCount++;
} }
} catch (e) { } catch (e) {
$ERROR('#' + hex + ' '); throw new Test262Error('#' + hex + ' ');
errorCount++; errorCount++;
} }
count++; count++;
@ -29,5 +29,5 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
} }
if (errorCount > 0) { if (errorCount > 0) {
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count); throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count);
} }

View File

@ -32,11 +32,11 @@ l:
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -49,10 +49,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -30,11 +30,11 @@ for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -39,11 +39,11 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -59,10 +59,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -11,55 +11,55 @@ description: Checking all character in reservedURISet. HexDigit in [0..9, A..F]
//CHECK#1 //CHECK#1
if (decodeURI("%3B") !== "%3B") { if (decodeURI("%3B") !== "%3B") {
$ERROR('#1: decodeURI("%3B") equal "%3B", not ";"'); throw new Test262Error('#1: decodeURI("%3B") equal "%3B", not ";"');
} }
//CHECK#2 //CHECK#2
if (decodeURI("%2F") !== "%2F") { if (decodeURI("%2F") !== "%2F") {
$ERROR('#2: decodeURI("%2F") equal "%2F", not "/"'); throw new Test262Error('#2: decodeURI("%2F") equal "%2F", not "/"');
} }
//CHECK#3 //CHECK#3
if (decodeURI("%3F") !== "%3F") { if (decodeURI("%3F") !== "%3F") {
$ERROR('#3: decodeURI("%3F") equal "%3F", not "?"'); throw new Test262Error('#3: decodeURI("%3F") equal "%3F", not "?"');
} }
//CHECK#4 //CHECK#4
if (decodeURI("%3A") !== "%3A") { if (decodeURI("%3A") !== "%3A") {
$ERROR('#4: decodeURI("%3A") equal "%3A", not ":"'); throw new Test262Error('#4: decodeURI("%3A") equal "%3A", not ":"');
} }
//CHECK#5 //CHECK#5
if (decodeURI("%40") !== "%40") { if (decodeURI("%40") !== "%40") {
$ERROR('#5: decodeURI("%40") equal "%40", not "@"'); throw new Test262Error('#5: decodeURI("%40") equal "%40", not "@"');
} }
//CHECK#6 //CHECK#6
if (decodeURI("%26") !== "%26") { if (decodeURI("%26") !== "%26") {
$ERROR('#6: decodeURI("%26") equal "%26", not "&"'); throw new Test262Error('#6: decodeURI("%26") equal "%26", not "&"');
} }
//CHECK#7 //CHECK#7
if (decodeURI("%3D") !== "%3D") { if (decodeURI("%3D") !== "%3D") {
$ERROR('#7.1: decodeURI("%3D") equal "%3D", not "="'); throw new Test262Error('#7.1: decodeURI("%3D") equal "%3D", not "="');
} }
//CHECK#8 //CHECK#8
if (decodeURI("%2B") !== "%2B") { if (decodeURI("%2B") !== "%2B") {
$ERROR('#8.1: decodeURI("%2B") equal "%2B", not "+"'); throw new Test262Error('#8.1: decodeURI("%2B") equal "%2B", not "+"');
} }
//CHECK#9 //CHECK#9
if (decodeURI("%24") !== "%24") { if (decodeURI("%24") !== "%24") {
$ERROR('#9: decodeURI("%24") equal "%24", not "$"'); throw new Test262Error('#9: decodeURI("%24") equal "%24", not "$"');
} }
//CHECK#10 //CHECK#10
if (decodeURI("%2C") !== "%2C") { if (decodeURI("%2C") !== "%2C") {
$ERROR('#10: decodeURI("%2C") equal "%2C", not ","'); throw new Test262Error('#10: decodeURI("%2C") equal "%2C", not ","');
} }
//CHECK#11 //CHECK#11
if (decodeURI("%23") !== "%23") { if (decodeURI("%23") !== "%23") {
$ERROR('#11: decodeURI("%23") equal "%23", not "#"'); throw new Test262Error('#11: decodeURI("%23") equal "%23", not "#"');
} }

View File

@ -11,55 +11,55 @@ description: Checking all character in reservedURISet. HexDigit in [0..9, a..f]
//CHECK#1 //CHECK#1
if (decodeURI("%3b") !== "%3b") { 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 //CHECK#2
if (decodeURI("%2f") !== "%2f") { 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 //CHECK#3
if (decodeURI("%3f") !== "%3f") { 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 //CHECK#4
if (decodeURI("%3a") !== "%3a") { 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 //CHECK#5
if (decodeURI("%40") !== "%40") { if (decodeURI("%40") !== "%40") {
$ERROR('#5: decodeURI("%40") equal "%40", not "@"'); throw new Test262Error('#5: decodeURI("%40") equal "%40", not "@"');
} }
//CHECK#6 //CHECK#6
if (decodeURI("%26") !== "%26") { if (decodeURI("%26") !== "%26") {
$ERROR('#6: decodeURI("%26") equal "%26", not "&"'); throw new Test262Error('#6: decodeURI("%26") equal "%26", not "&"');
} }
//CHECK#7 //CHECK#7
if (decodeURI("%3d") !== "%3d") { 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 //CHECK#8
if (decodeURI("%2b") !== "%2b") { 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 //CHECK#9
if (decodeURI("%24") !== "%24") { if (decodeURI("%24") !== "%24") {
$ERROR('#9: decodeURI("%24") equal "%24", not "$"'); throw new Test262Error('#9: decodeURI("%24") equal "%24", not "$"');
} }
//CHECK#10 //CHECK#10
if (decodeURI("%2c") !== "%2c") { 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 //CHECK#11
if (decodeURI("%23") !== "%23") { if (decodeURI("%23") !== "%23") {
$ERROR('#11: decodeURI("%23") equal "%23", not "#"'); throw new Test262Error('#11: decodeURI("%23") equal "%23", not "#"');
} }

View File

@ -11,10 +11,10 @@ description: Complex test
//CHECK#1 //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") { 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 //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") { 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"');
} }

View File

@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET
//CHECK#1 //CHECK#1
if (decodeURI("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") { 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 //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") { 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 //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") { 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');
} }

View File

@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET
//CHECK#1 //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/Юникод") { 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 //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/Юникод#Ссылки") { 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 //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Версии Юникода") { 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Версии Юникода');
} }

View File

@ -9,20 +9,20 @@ description: Checking URL with Line Terminator
//CHECK#1 //CHECK#1
if (decodeURI("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") { 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 //CHECK#2
if (decodeURI("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") { 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 //CHECK#3
if (decodeURI("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") { 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 //CHECK#4
if (decodeURI("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") { if (decodeURI("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") {
$ERROR('#4: http://unipro.ru/%0Dabout'); throw new Test262Error('#4: http://unipro.ru/%0Dabout');
} }

View File

@ -9,20 +9,20 @@ description: Test some url
//CHECK#1 //CHECK#1
if (decodeURI("") !== "") { if (decodeURI("") !== "") {
$ERROR('#1: ""'); throw new Test262Error('#1: ""');
} }
//CHECK#2 //CHECK#2
if (decodeURI("http:%2f%2Funipro.ru") !== "http:%2f%2Funipro.ru") { 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 //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") { 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 //CHECK%234
if (decodeURI("http://en.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8%23Description") { 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');
} }

View File

@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in
//CHECK#1 //CHECK#1
if (decodeURI.propertyIsEnumerable('length') !== false) { 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 //CHECK#2
@ -21,5 +21,5 @@ for (var p in decodeURI) {
} }
if (result !== true) { 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;');
} }

View File

@ -9,17 +9,17 @@ description: Checking use hasOwnProperty, delete
//CHECK#1 //CHECK#1
if (decodeURI.hasOwnProperty('length') !== true) { 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; delete decodeURI.length;
//CHECK#2 //CHECK#2
if (decodeURI.hasOwnProperty('length') !== false) { 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 //CHECK#3
if (decodeURI.length === undefined) { if (decodeURI.length === undefined) {
$ERROR('#3: delete decodeURI.length; decodeURI.length !== undefined'); throw new Test262Error('#3: delete decodeURI.length; decodeURI.length !== undefined');
} }

View File

@ -12,5 +12,5 @@ includes: [propertyHelper.js]
var x = decodeURI.length; var x = decodeURI.length;
verifyNotWritable(decodeURI, "length", null, Infinity); verifyNotWritable(decodeURI, "length", null, Infinity);
if (decodeURI.length !== x) { 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));
} }

View File

@ -9,5 +9,5 @@ description: decodeURI.length === 1
//CHECK#1 //CHECK#1
if (decodeURI.length !== 1) { if (decodeURI.length !== 1) {
$ERROR('#1: decodeURI.length === 1. Actual: ' + (decodeURI.length)); throw new Test262Error('#1: decodeURI.length === 1. Actual: ' + (decodeURI.length));
} }

View File

@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in
//CHECK#1 //CHECK#1
if (this.propertyIsEnumerable('decodeURI') !== false) { 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 //CHECK#2
@ -21,5 +21,5 @@ for (var p in this) {
} }
if (result !== true) { 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;');
} }

View File

@ -9,5 +9,5 @@ description: Checking decodeURI.prototype
//CHECK#1 //CHECK#1
if (decodeURI.prototype !== undefined) { if (decodeURI.prototype !== undefined) {
$ERROR('#1: decodeURI.prototype === undefined. Actual: ' + (decodeURI.prototype)); throw new Test262Error('#1: decodeURI.prototype === undefined. Actual: ' + (decodeURI.prototype));
} }

View File

@ -13,9 +13,9 @@ description: >
try { try {
new decodeURI(); 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) { } catch (e) {
if ((e instanceof TypeError) !== true) { 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));
} }
} }

View File

@ -14,7 +14,7 @@ var object = {
} }
}; };
if (decodeURI(object) !== "[object 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 //CHECK#2
@ -27,7 +27,7 @@ var object = {
} }
}; };
if (decodeURI(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 //CHECK#3
@ -40,7 +40,7 @@ var object = {
} }
}; };
if (decodeURI(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 //CHECK#4
@ -54,14 +54,14 @@ try {
} }
}; };
if (decodeURI(object) !== "^") { 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) { catch (e) {
if (e === "error") { 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 { } 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) !== "^") { 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 //CHECK#6
@ -85,7 +85,7 @@ var object = {
} }
} }
if (decodeURI(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 //CHECK#7
@ -99,11 +99,11 @@ try {
} }
}; };
decodeURI(object); 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) { catch (e) {
if (e !== "error") { 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); 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) { catch (e) {
if ((e instanceof TypeError) !== true) { 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));
} }
} }

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -34,5 +34,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -35,5 +35,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -36,11 +36,11 @@ for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = indexB; indexO = indexB;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -50,5 +50,5 @@ try {
} }
if (result !== true) { 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');
} }

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -31,5 +31,5 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
} }
if (result !== true) { 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');
} }

View File

@ -28,11 +28,11 @@ for (var index = 0x80; index <= 0xBF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -45,10 +45,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -28,11 +28,11 @@ for (var index = 0xF8; index <= 0xFF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -45,10 +45,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xC0; index <= 0xDF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -53,10 +53,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -30,11 +30,11 @@ for (var index = 0xC0; index <= 0xDF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -47,10 +47,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xE0; index <= 0xEF; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -31,11 +31,11 @@ for (var index = 0xF0; index <= 0xF7; index++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -17,11 +17,11 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
try { try {
var str = String.fromCharCode(indexI); var str = String.fromCharCode(indexI);
if (decodeURIComponent(str) !== str) { if (decodeURIComponent(str) !== str) {
$ERROR('#' + hex + ' '); throw new Test262Error('#' + hex + ' ');
errorCount++; errorCount++;
} }
} catch (e) { } catch (e) {
$ERROR('#' + hex + ' '); throw new Test262Error('#' + hex + ' ');
errorCount++; errorCount++;
} }
count++; count++;
@ -29,5 +29,5 @@ for (var indexI = 0; indexI <= 65535; indexI++) {
} }
if (errorCount > 0) { if (errorCount > 0) {
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count); throw new Test262Error('Total error: ' + errorCount + ' bad Unicode character in ' + count);
} }

View File

@ -26,11 +26,11 @@ for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -43,10 +43,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -30,11 +30,11 @@ for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -48,10 +48,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -35,11 +35,11 @@ for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -54,10 +54,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -39,11 +39,11 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} }
else { else {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' '); throw new Test262Error('#' + hexP + ' ');
} }
indexO = index; indexO = index;
} }
@ -59,10 +59,10 @@ if (errorCount > 0) {
if ((indexP - indexO) !== 0) { if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP); var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO); var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' '); throw new Test262Error('#' + hexO + '-' + hexP + ' ');
} else { } else {
var hexP = decimalToHexString(indexP); 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 + ' ');
} }

View File

@ -11,55 +11,55 @@ description: >
//CHECK#1 //CHECK#1
if (decodeURIComponent("%3B") !== ";") { if (decodeURIComponent("%3B") !== ";") {
$ERROR('#1: decodeURIComponent("%3B") equal ";", not "%3B"'); throw new Test262Error('#1: decodeURIComponent("%3B") equal ";", not "%3B"');
} }
//CHECK#2 //CHECK#2
if (decodeURIComponent("%2F") !== "/") { if (decodeURIComponent("%2F") !== "/") {
$ERROR('#2: decodeURIComponent("%2F") equal "/", not "%2F"'); throw new Test262Error('#2: decodeURIComponent("%2F") equal "/", not "%2F"');
} }
//CHECK#3 //CHECK#3
if (decodeURIComponent("%3F") !== "?") { if (decodeURIComponent("%3F") !== "?") {
$ERROR('#3: decodeURIComponent("%3F") equal "?", not "%3F"'); throw new Test262Error('#3: decodeURIComponent("%3F") equal "?", not "%3F"');
} }
//CHECK#4 //CHECK#4
if (decodeURIComponent("%3A") !== ":") { if (decodeURIComponent("%3A") !== ":") {
$ERROR('#4: decodeURIComponent("%3A") equal ":", not "%3A"'); throw new Test262Error('#4: decodeURIComponent("%3A") equal ":", not "%3A"');
} }
//CHECK#5 //CHECK#5
if (decodeURIComponent("%40") !== "@") { if (decodeURIComponent("%40") !== "@") {
$ERROR('#5: decodeURIComponent("%40") equal "@", not "%40"'); throw new Test262Error('#5: decodeURIComponent("%40") equal "@", not "%40"');
} }
//CHECK#6 //CHECK#6
if (decodeURIComponent("%26") !== "&") { if (decodeURIComponent("%26") !== "&") {
$ERROR('#6: decodeURIComponent("%26") equal "&", not "%26"'); throw new Test262Error('#6: decodeURIComponent("%26") equal "&", not "%26"');
} }
//CHECK#7 //CHECK#7
if (decodeURIComponent("%3D") !== "=") { if (decodeURIComponent("%3D") !== "=") {
$ERROR('#7.1: decodeURIComponent("%3D") equal "=", not "%3D"'); throw new Test262Error('#7.1: decodeURIComponent("%3D") equal "=", not "%3D"');
} }
//CHECK#8 //CHECK#8
if (decodeURIComponent("%2B") !== "+") { if (decodeURIComponent("%2B") !== "+") {
$ERROR('#8.1: decodeURIComponent("%2B") equal "+", not "%2B"'); throw new Test262Error('#8.1: decodeURIComponent("%2B") equal "+", not "%2B"');
} }
//CHECK#9 //CHECK#9
if (decodeURIComponent("%24") !== "$") { if (decodeURIComponent("%24") !== "$") {
$ERROR('#9: decodeURIComponent("%24") equal "$", not "%24"'); throw new Test262Error('#9: decodeURIComponent("%24") equal "$", not "%24"');
} }
//CHECK#10 //CHECK#10
if (decodeURIComponent("%2C") !== ",") { if (decodeURIComponent("%2C") !== ",") {
$ERROR('#10: decodeURIComponent("%2C") equal ",", not "%2C"'); throw new Test262Error('#10: decodeURIComponent("%2C") equal ",", not "%2C"');
} }
//CHECK#11 //CHECK#11
if (decodeURIComponent("%23") !== "#") { if (decodeURIComponent("%23") !== "#") {
$ERROR('#11: decodeURIComponent("%23") equal "#", not "%23"'); throw new Test262Error('#11: decodeURIComponent("%23") equal "#", not "%23"');
} }

View File

@ -11,55 +11,55 @@ description: >
//CHECK#1 //CHECK#1
if (decodeURIComponent("%3b") !== ";") { 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 //CHECK#2
if (decodeURIComponent("%2f") !== "/") { 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 //CHECK#3
if (decodeURIComponent("%3f") !== "?") { 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 //CHECK#4
if (decodeURIComponent("%3a") !== ":") { 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 //CHECK#5
if (decodeURIComponent("%40") !== "@") { if (decodeURIComponent("%40") !== "@") {
$ERROR('#5: decodeURIComponent("%40") equal "@", not "%40"'); throw new Test262Error('#5: decodeURIComponent("%40") equal "@", not "%40"');
} }
//CHECK#6 //CHECK#6
if (decodeURIComponent("%26") !== "&") { if (decodeURIComponent("%26") !== "&") {
$ERROR('#6: decodeURIComponent("%26") equal "&", not "%26"'); throw new Test262Error('#6: decodeURIComponent("%26") equal "&", not "%26"');
} }
//CHECK#7 //CHECK#7
if (decodeURIComponent("%3d") !== "=") { 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 //CHECK#8
if (decodeURIComponent("%2b") !== "+") { 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 //CHECK#9
if (decodeURIComponent("%24") !== "$") { if (decodeURIComponent("%24") !== "$") {
$ERROR('#9: decodeURIComponent("%24") equal "$", not "%24"'); throw new Test262Error('#9: decodeURIComponent("%24") equal "$", not "%24"');
} }
//CHECK#10 //CHECK#10
if (decodeURIComponent("%2c") !== ",") { 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 //CHECK#11
if (decodeURIComponent("%23") !== "#") { if (decodeURIComponent("%23") !== "#") {
$ERROR('#11: decodeURIComponent("%23") equal "#", not "%23"'); throw new Test262Error('#11: decodeURIComponent("%23") equal "#", not "%23"');
} }

View File

@ -9,10 +9,10 @@ description: Complex test
//CHECK#1 //CHECK#1
if (decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") !== ";/?:@&=+$,#") { 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 //CHECK#2
if (decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") !== ";/?:@&=+$,#") { 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"');
} }

View File

@ -9,15 +9,15 @@ description: Checking ENGLISH ALPHABET
//CHECK#1 //CHECK#1
if (decodeURIComponent("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") { 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 //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") { 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 //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") { 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');
} }

View File

@ -9,15 +9,15 @@ description: Checking RUSSIAN ALPHABET
//CHECK#1 //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/Юникод") { 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 //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/Юникод#Ссылки") { 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 //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/Юникод#Версии Юникода") { 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Версии Юникода');
} }

View File

@ -9,20 +9,20 @@ description: Checking URL with Line Terminator
//CHECK#1 //CHECK#1
if (decodeURIComponent("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") { 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 //CHECK#2
if (decodeURIComponent("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") { 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 //CHECK#3
if (decodeURIComponent("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") { 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 //CHECK#4
if (decodeURIComponent("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") { if (decodeURIComponent("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") {
$ERROR('#4: http://unipro.ru/%0Dabout'); throw new Test262Error('#4: http://unipro.ru/%0Dabout');
} }

View File

@ -9,20 +9,20 @@ description: Test some url
//CHECK#1 //CHECK#1
if (decodeURIComponent("") !== "") { if (decodeURIComponent("") !== "") {
$ERROR('#1: ""'); throw new Test262Error('#1: ""');
} }
//CHECK#2 //CHECK#2
if (decodeURIComponent("http://unipro.ru") !== "http://unipro.ru") { if (decodeURIComponent("http://unipro.ru") !== "http://unipro.ru") {
$ERROR('#2: http://unipro.ru'); throw new Test262Error('#2: http://unipro.ru');
} }
//CHECK#3 //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") { 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 //CHECK#4
if (decodeURIComponent("http:%2F%2Fen.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8#Description") { 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');
} }

View File

@ -9,7 +9,7 @@ description: Checking use propertyIsEnumerable, for-in
//CHECK#1 //CHECK#1
if (decodeURIComponent.propertyIsEnumerable('length') !== false) { 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 //CHECK#2
@ -21,5 +21,5 @@ for (var p in decodeURIComponent) {
} }
if (result !== true) { 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;');
} }

View File

@ -11,17 +11,17 @@ description: Checking use hasOwnProperty, delete
//CHECK#1 //CHECK#1
if (decodeURIComponent.hasOwnProperty('length') !== true) { 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; delete decodeURIComponent.length;
//CHECK#2 //CHECK#2
if (decodeURIComponent.hasOwnProperty('length') !== false) { 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 //CHECK#3
if (decodeURIComponent.length === undefined) { if (decodeURIComponent.length === undefined) {
$ERROR('#3: delete decodeURIComponent.length; decodeURIComponent.length !== undefined'); throw new Test262Error('#3: delete decodeURIComponent.length; decodeURIComponent.length !== undefined');
} }

View File

@ -12,5 +12,5 @@ includes: [propertyHelper.js]
var x = decodeURIComponent.length; var x = decodeURIComponent.length;
verifyNotWritable(decodeURIComponent, "length", null, Infinity); verifyNotWritable(decodeURIComponent, "length", null, Infinity);
if (decodeURIComponent.length !== x) { 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));
} }

View File

@ -9,5 +9,5 @@ description: decodeURIComponent.length === 1
//CHECK#1 //CHECK#1
if (decodeURIComponent.length !== 1) { if (decodeURIComponent.length !== 1) {
$ERROR('#1: decodeURIComponent.length === 1. Actual: ' + (decodeURIComponent.length)); throw new Test262Error('#1: decodeURIComponent.length === 1. Actual: ' + (decodeURIComponent.length));
} }

Some files were not shown because too many files have changed in this diff Show More