Remove trailing whitespace

This commit is contained in:
Lyza Danger Gardner 2017-06-29 15:49:49 -04:00
parent b7daa23582
commit f3f2c4d47b
40 changed files with 339 additions and 339 deletions

View File

@ -18,15 +18,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%C0%" + String.fromCharCode(indexJ, indexJ));
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -21,15 +21,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%E0%" + String.fromCharCode(indexJ, indexJ) + "%A0");
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -21,15 +21,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%E0%" + "%A0" + String.fromCharCode(indexJ, indexJ));
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -22,15 +22,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%F0%" + String.fromCharCode(indexJ, indexJ) + "%A0%A0");
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -22,15 +22,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%F0%" + "%A0" + String.fromCharCode(indexJ, indexJ) + "%A0");
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -22,15 +22,15 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) {
try {
decodeURI("%F0%" + "%A0%A0" + String.fromCharCode(indexJ, indexJ));
result = false;
} catch (e) {
result = false;
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
result = false;
}
}
}
}
}
}
}
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');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xC0; indexB <= 0xDF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC + "%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0" + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC + "%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xE0; indexB <= 0xEF; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0" + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC + "%A0%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0" + hexC + "%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0x00; indexC <= 0x7F; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0%A0" + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + hexC + "%A0%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0" + hexC + "%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var indexP;
var indexO = 0;
for (var indexB = 0xF0; indexB <= 0xF7; indexB++) {
count++;
count++;
var hexB = decimalToPercentHexString(indexB);
var result = true;
for (var indexC = 0xC0; indexC <= 0xFF; indexC++) {
var hexC = decimalToPercentHexString(indexC);
try {
decodeURI(hexB + "%A0%A0" + hexC);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = indexB;
} else {
if ((indexB - indexP) !== 1) {
if ((indexB - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = indexB;
}
}
}
indexP = indexB;
errorCount++;
errorCount++;
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,14 +19,14 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
try {
decodeURI("%" + String.fromCharCode(indexJ) + "1");
result = false;
} catch (e) {
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
}
}
}
}
}
}
if (result !== true) {
if (result !== true) {
$ERROR('#1: If string.charAt(k+1) does not represent hexadecimal digits, throw URIError');
}

View File

@ -19,14 +19,14 @@ for (var indexI = 0; indexI < interval.length; indexI++) {
try {
decodeURI("%" + "1" + String.fromCharCode(indexJ));
result = false;
} catch (e) {
} catch (e) {
if ((e instanceof URIError) !== true) {
result = false;
}
}
}
}
}
}
}
if (result !== true) {
if (result !== true) {
$ERROR('#1: If string.charAt(k+2) does not represent hexadecimal digits, throw URIError');
}

View File

@ -16,31 +16,31 @@ var indexP;
var indexO = 0;
for (var index = 0x80; index <= 0xBF; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -51,6 +51,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -16,31 +16,31 @@ var indexP;
var indexO = 0;
for (var index = 0xF8; index <= 0xFF; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -51,6 +51,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -16,39 +16,39 @@ var indexP;
var indexO = 0;
for (var index = 0xC0; index <= 0xDF; index++) {
count++;
count++;
var str = "";
var result = true;
for (var len = 0; len < 3; len++) {
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + str);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
str = str + "1";
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
}
errorCount++;
}
}
if (errorCount > 0) {
@ -59,6 +59,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -16,39 +16,39 @@ var indexP;
var indexO = 0;
for (var index = 0xE0; index <= 0xEF; index++) {
count++;
count++;
var str = "";
var result = true;
for (var len = 0; len < 6; len++) {
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + str);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
str = str + "1";
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
}
errorCount++;
}
}
if (errorCount > 0) {
@ -59,6 +59,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -16,39 +16,39 @@ var indexP;
var indexO = 0;
for (var index = 0xF0; index <= 0xF7; index++) {
count++;
count++;
var str = "";
var result = true;
for (var len = 0; len < 9; len++) {
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + str);
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
result = false;
str = str + "1";
}
if (result !== true) {
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
}
errorCount++;
}
}
if (errorCount > 0) {
@ -59,6 +59,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,31 +18,31 @@ var indexP;
var indexO = 0;
for (var index = 0xC0; index <= 0xDF; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "111");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -53,6 +53,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,31 +19,31 @@ var indexP;
var indexO = 0;
for (var index = 0xE0; index <= 0xEF; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "111%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,31 +19,31 @@ var indexP;
var indexO = 0;
for (var index = 0xE0; index <= 0xEF; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "%A0111");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,31 +19,31 @@ var indexP;
var indexO = 0;
for (var index = 0xF0; index <= 0xF7; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "111%A0%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,31 +19,31 @@ var indexP;
var indexO = 0;
for (var index = 0xF0; index <= 0xF7; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "%A0111%A0");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -19,31 +19,31 @@ var indexP;
var indexO = 0;
for (var index = 0xF0; index <= 0xF7; index++) {
count++;
count++;
var hex = decimalToPercentHexString(index);
try {
decodeURI(hex + "%A0%A0111");
} catch (e) {
if ((e instanceof URIError) === true) continue;
} catch (e) {
if ((e instanceof URIError) === true) continue;
}
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -16,20 +16,20 @@ var count = 0;
for (var indexI = 0; indexI <= 65535; indexI++) {
if (indexI !== 0x25) {
var hex = decimalToHexString(indexI);
try {
try {
var str = String.fromCharCode(indexI);
if (decodeURI(str) !== str) {
if (decodeURI(str) !== str) {
$ERROR('#' + hex + ' ');
errorCount++;
}
}
} catch (e){
$ERROR('#' + hex + ' ');
errorCount++;
}
}
count++;
}
}
}
if (errorCount > 0) {
if (errorCount > 0) {
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count);
}

View File

@ -16,10 +16,10 @@ var indexP;
var indexO = 0;
var uriReserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","];
l:
for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
count++;
var hexB1 = decimalToPercentHexString(indexB1);
var index = indexB1;
var index = indexB1;
var hex = String.fromCharCode(index);
for (var indexC = 0; indexC < uriReserved.length; indexC++) {
if (hex === uriReserved[indexC]) continue l;
@ -27,24 +27,24 @@ for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) {
if (hex === "#") continue;
if (decodeURI(hexB1) === hex) continue;
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
if (errorCount > 0) {
@ -55,6 +55,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -17,32 +17,32 @@ var count = 0;
var indexP;
var indexO = 0;
for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) {
for (var indexB1 = 0xC2; indexB1 <= 0xDF; indexB1++) {
var hexB1 = decimalToPercentHexString(indexB1);
for (var indexB2 = 0x80; indexB2 <= 0xBF; indexB2++) {
count++;
var hexB1_B2 = hexB1 + decimalToPercentHexString(indexB2);
var index = (indexB1 & 0x1F) * 0x40 + (indexB2 & 0x3F);
var index = (indexB1 & 0x1F) * 0x40 + (indexB2 & 0x3F);
if (decodeURI(hexB1_B2) === String.fromCharCode(index)) continue;
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
}
@ -54,6 +54,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,37 +18,37 @@ var count = 0;
var indexP;
var indexO = 0;
for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) {
for (var indexB1 = 0xE0; indexB1 <= 0xEF; indexB1++) {
var hexB1 = decimalToPercentHexString(indexB1);
for (var indexB2 = 0x80; indexB2 <= 0xBF; indexB2++) {
if ((indexB1 === 0xE0) && (indexB2 <= 0x9F)) continue;
if ((indexB1 === 0xED) && (0xA0 <= indexB2)) continue;
if ((indexB1 === 0xED) && (0xA0 <= indexB2)) continue;
var hexB1_B2 = hexB1 + decimalToPercentHexString(indexB2);
for (var indexB3 = 0x80; indexB3 <= 0xBF; indexB3++) {
count++;
var hexB1_B2_B3 = hexB1_B2 + decimalToPercentHexString(indexB3);
var index = (indexB1 & 0x0F) * 0x1000 + (indexB2 & 0x3F) * 0x40 + (indexB3 & 0x3F);
var index = (indexB1 & 0x0F) * 0x1000 + (indexB2 & 0x3F) * 0x40 + (indexB3 & 0x3F);
if (decodeURI(hexB1_B2_B3) === String.fromCharCode(index)) continue;
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
}
errorCount++;
}
}
}
@ -60,6 +60,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -18,10 +18,10 @@ var count = 0;
var indexP;
var indexO = 0;
for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) {
for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) {
var hexB1 = decimalToPercentHexString(indexB1);
for (var indexB2 = 0x80; indexB2 <= 0xBF; indexB2++) {
if ((indexB1 === 0xF0) && (indexB2 <= 0x9F)) continue;
if ((indexB1 === 0xF0) && (indexB2 <= 0x9F)) continue;
if ((indexB1 === 0xF4) && (indexB2 >= 0x90)) continue;
var hexB1_B2 = hexB1 + decimalToPercentHexString(indexB2);
for (var indexB3 = 0x80; indexB3 <= 0xBF; indexB3++) {
@ -31,29 +31,29 @@ for (var indexB1 = 0xF0; indexB1 <= 0xF4; indexB1++) {
count++;
var index = (indexB1 & 0x07) * 0x40000 + (indexB2 & 0x3F) * 0x1000 + (indexB3 & 0x3F) * 0x40 + (indexB4 & 0x3F);
var L = ((index - 0x10000) & 0x03FF) + 0xDC00;
var H = (((index - 0x10000) >> 10) & 0x03FF) + 0xD800;
var H = (((index - 0x10000) >> 10) & 0x03FF) + 0xD800;
if (decodeURI(hexB1_B2_B3_B4) === String.fromCharCode(H, L)) continue;
if (indexO === 0) {
if (indexO === 0) {
indexO = index;
} else {
if ((index - indexP) !== 1) {
if ((index - indexP) !== 1) {
if ((indexP - indexO) !== 0) {
var hexP = decimalToHexString(indexP);
var hexO = decimalToHexString(indexO);
$ERROR('#' + hexO + '-' + hexP + ' ');
}
}
else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
indexO = index;
}
}
}
indexP = index;
errorCount++;
errorCount++;
}
}
}
}
}
@ -65,6 +65,6 @@ if (errorCount > 0) {
} else {
var hexP = decimalToHexString(indexP);
$ERROR('#' + hexP + ' ');
}
}
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count + ' ');
}

View File

@ -22,7 +22,7 @@ if (decodeURI("http:%2f%2Funipro.ru") !== "http:%2f%2Funipro.ru") {
//CHECK#3
if (decodeURI("http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") !== "http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") {
$ERROR('#3: http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork"');
}
}
//CHECK%234
if (decodeURI("http://en.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8%23Description") {

View File

@ -19,7 +19,7 @@ var result = true;
for (var p in decodeURI){
if (p === "length") {
result = false;
}
}
}
if (result !== true) {

View File

@ -19,7 +19,7 @@ var result = true;
for (var p in this){
if (p === "decodeURI") {
result = false;
}
}
}
if (result !== true) {

View File

@ -19,7 +19,7 @@ if (decodeURI(object) !== "[object Object]") {
var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}};
if (decodeURI(object) !== "^") {
$ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object)));
}
}
//CHECK#3
var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}};
@ -59,11 +59,11 @@ try {
var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}};
decodeURI(object);
$ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object)));
}
}
catch (e) {
if (e !== "error") {
$ERROR('#7.2: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (e));
}
}
}
//CHECK#8
@ -71,9 +71,9 @@ try {
var object = {valueOf: function() {return {}}, toString: function() {return {}}};
decodeURI(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object)));
}
}
catch (e) {
if ((e instanceof TypeError) !== true) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (e));
}
}
}