chore: migrate $ERROR -> throw new Test262Error in test/language/white-space/* (#3107)

This commit is contained in:
Rick Waldron 2021-07-28 16:43:40 -04:00 committed by GitHub
parent 758ecd7895
commit 2581a439a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 34 additions and 34 deletions

View File

@ -9,5 +9,5 @@ description: Use real HORIZONTAL TAB
//CHECK#1
if (" str ing " !== "\u0009str\u0009ing\u0009") {
$ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
throw new Test262Error('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
}

View File

@ -9,5 +9,5 @@ description: Use real VERTICAL TAB
//CHECK#1
if (" str ing " !== "\u000Bstr\u000Bing\u000B") {
$ERROR('#1: " str ing " === "\\u000Bstr\\u000Bing\\u000B"');
throw new Test262Error('#1: " str ing " === "\\u000Bstr\\u000Bing\\u000B"');
}

View File

@ -9,5 +9,5 @@ description: Use real FORM FEED
//CHECK#1
if (" str ing " !== "\u000Cstr\u000Cing\u000C") {
$ERROR('#1: " str ing " === "\\u000Cstr\\u000Cing\\u000C"');
throw new Test262Error('#1: " str ing " === "\\u000Cstr\\u000Cing\\u000C"');
}

View File

@ -9,5 +9,5 @@ description: Use real SPACE
//CHECK#1
if (" str ing " !== "\u0020str\u0020ing\u0020") {
$ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
throw new Test262Error('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
}

View File

@ -9,5 +9,5 @@ description: Use real NO-BREAK SPACE
//CHECK#1
if (" str ing " !== "\u00A0str\u00A0ing\u00A0") {
$ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
throw new Test262Error('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
}

View File

@ -11,5 +11,5 @@ description: Use real HORIZONTAL TAB
var x = 0;
// single line comment x = 1;
if (x !== 0) {
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real VERTICAL TAB
var x = 0;
// single line comment x = 1;
if (x !== 0) {
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real FORM FEED
var x = 0;
// single line comment x = 1;
if (x !== 0) {
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real SPACE
var x = 0;
// single line comment x = 1;
if (x !== 0) {
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real NO-BREAK SPACE
var x = 0;
// single line comment x = 1;
if (x !== 0) {
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real HORIZONTAL TAB
var x = 0;
/* multi line comment x = 1;*/
if (x !== 0) {
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real VERTICAL TAB
var x = 0;
/* multi line comment x = 1;*/
if (x !== 0) {
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real FORM FEED
var x = 0;
/* multi line comment x = 1;*/
if (x !== 0) {
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real SPACE
var x = 0;
/* multi line comment x = 1;*/
if (x !== 0) {
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
}

View File

@ -11,5 +11,5 @@ description: Use real NO-BREAK SPACE
var x = 0;
/* multi line comment x = 1;*/
if (x !== 0) {
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("/*\u000C multi line \u000C comment \u000C*/");
var x = 0;
eval("/*\u000C multi line \u000C comment \u000C x = 1;*/");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("/*\\u000C multi line \\u000C comment \\u000C x = 1;*/"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("/*\\u000C multi line \\u000C comment \\u000C x = 1;*/"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("/*\u0009 multi line \u0009 comment \u0009*/");
var x = 0;
eval("/*\u0009 multi line \u0009 comment \u0009 x = 1;*/");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("/*\\u0009 multi line \\u0009 comment \\u0009 x = 1;*/"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("/*\\u0009 multi line \\u0009 comment \\u0009 x = 1;*/"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("/*\u00A0 multi line \u00A0 comment \u00A0*/");
var x = 0;
eval("/*\u00A0 multi line \u00A0 comment \u00A0 x = 1;*/");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("/*\\u00A0 multi line \\u00A0 comment \\u00A0 x = 1;*/"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("/*\\u00A0 multi line \\u00A0 comment \\u00A0 x = 1;*/"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("/*\u0020 multi line \u0020 comment \u0020*/");
var x = 0;
eval("/*\u0020 multi line \u0020 comment \u0020 x = 1;*/");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("/*\\u0020 multi line \\u0020 comment \\u0020 x = 1;*/"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("/*\\u0020 multi line \\u0020 comment \\u0020 x = 1;*/"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("/*\u000B multi line \u000B comment \u000B*/");
var x = 0;
eval("/*\u000B multi line \u000B comment \u000B x = 1;*/");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("/*\\u000B multi line \\u000B comment \\u000B x = 1;*/"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("/*\\u000B multi line \\u000B comment \\u000B x = 1;*/"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("//\u000C single line \u000C comment \u000C");
var x = 0;
eval("//\u000C single line \u000C comment \u000C x = 1;");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("//\\u000C single line \\u000C comment \\u000C x = 1;"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("//\\u000C single line \\u000C comment \\u000C x = 1;"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("//\u0009 single line \u0009 comment \u0009");
var x = 0;
eval("//\u0009 single line \u0009 comment \u0009 x = 1;");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("//\\u0009 single line \\u0009 comment \\u0009 x = 1;"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("//\\u0009 single line \\u0009 comment \\u0009 x = 1;"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("//\u00A0 single line \u00A0 comment \u00A0");
var x = 0;
eval("//\u00A0 single line \u00A0 comment \u00A0 x = 1;");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("//\\u00A0 single line \\u00A0 comment \\u00A0 x = 1;"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("//\\u00A0 single line \\u00A0 comment \\u00A0 x = 1;"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("//\u0020 single line \u0020 comment \u0020");
var x = 0;
eval("//\u0020 single line \u0020 comment \u0020 x = 1;");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("//\\u0020 single line \\u0020 comment \\u0020 x = 1;"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("//\\u0020 single line \\u0020 comment \\u0020 x = 1;"); x === 0. Actual: ' + (x));
}

View File

@ -14,5 +14,5 @@ eval("//\u000B single line \u000B comment \u000B");
var x = 0;
eval("//\u000B single line \u000B comment \u000B x = 1;");
if (x !== 0) {
$ERROR('#1: var x = 0; eval("//\\u000B single line \\u000B comment \\u000B x = 1;"); x === 0. Actual: ' + (x));
throw new Test262Error('#1: var x = 0; eval("//\\u000B single line \\u000B comment \\u000B x = 1;"); x === 0. Actual: ' + (x));
}

View File

@ -9,10 +9,10 @@ description: Use FORM FEED(\u000C and \f)
// CHECK#1
if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") {
$ERROR('#1: eval("\'\\u000Cstr\\u000Cing\\u000C\'") === "\\u000Cstr\\u000Cing\\u000C"');
throw new Test262Error('#1: eval("\'\\u000Cstr\\u000Cing\\u000C\'") === "\\u000Cstr\\u000Cing\\u000C"');
}
//CHECK#2
if (eval("'\fstr\fing\f'") !== "\fstr\fing\f") {
$ERROR('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"');
throw new Test262Error('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"');
}

View File

@ -9,10 +9,10 @@ description: Use HORIZONTAL TAB(\u0009 and \t)
// CHECK#1
if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") {
$ERROR('#1: eval("\'\\u0009str\\u0009ing\\u0009\'") === "\\u0009str\\u0009ing\\u0009"');
throw new Test262Error('#1: eval("\'\\u0009str\\u0009ing\\u0009\'") === "\\u0009str\\u0009ing\\u0009"');
}
//CHECK#2
if (eval("'\tstr\ting\t'") !== "\tstr\ting\t") {
$ERROR('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
throw new Test262Error('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
}

View File

@ -9,5 +9,5 @@ description: Use NO-BREAK SPACE(\u00A0)
// CHECK#1
if (eval("'\u00A0str\u00A0ing\u00A0'") !== "\u00A0str\u00A0ing\u00A0") {
$ERROR('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"');
throw new Test262Error('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"');
}

View File

@ -9,10 +9,10 @@ description: Use SPACE(\u0020)
// CHECK#1
if (eval("'\u0020str\u0020ing\u0020'") !== "\u0020str\u0020ing\u0020") {
$ERROR('#1: eval("\'\\u0020str\\u0020ing\\u0020\'") === "\\u0020str\\u0020ing\\u0020"');
throw new Test262Error('#1: eval("\'\\u0020str\\u0020ing\\u0020\'") === "\\u0020str\\u0020ing\\u0020"');
}
//CHECK#2
if (eval("' str ing '") !== " str ing ") {
$ERROR('#2: eval("\' str ing \'") === " str ing "');
throw new Test262Error('#2: eval("\' str ing \'") === " str ing "');
}

View File

@ -9,10 +9,10 @@ description: Use VERTICAL TAB(\u000B and \v)
// CHECK#1
if (eval("'\u000Bstr\u000Bing\u000B'") !== "\u000Bstr\u000Bing\u000B") {
$ERROR('#1: eval("\'\\u000Bstr\\u000Bing\\u000B\'") === "\\u000Bstr\\u000Bing\\u000B"');
throw new Test262Error('#1: eval("\'\\u000Bstr\\u000Bing\\u000B\'") === "\\u000Bstr\\u000Bing\\u000B"');
}
//CHECK#2
if (eval("'\vstr\ving\v'") !== "\vstr\ving\v") {
$ERROR('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"');
throw new Test262Error('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"');
}