Whitespace cleanup: tab removal in tests directory
Also changed space-based indentation in touched files if they used 4 spaces for indentation (instead of the most-often-used 2). Also added new line to end of touched files if they did not end that way. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -28,58 +28,58 @@ t = /\u0000/.exec("\u0000");
|
||||
assert (t == "\u0000");
|
||||
|
||||
try {
|
||||
eval("/" + String.fromCharCode("0x0000") + "/");
|
||||
eval("/" + String.fromCharCode("0x0000") + "/");
|
||||
} catch (e) {
|
||||
assert (false);
|
||||
assert (false);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("var x = 5\n\n/foo/");
|
||||
assert(false);
|
||||
eval("var x = 5\n\n/foo/");
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof SyntaxError);
|
||||
assert(e instanceof SyntaxError);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("var x = 5;\n\n/foo/");
|
||||
eval("var x = 5;\n\n/foo/");
|
||||
} catch (e) {
|
||||
assert(false);
|
||||
assert(false);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("for (;false;/abc/.exec(\"abc\")) {5}");
|
||||
eval("for (;false;/abc/.exec(\"abc\")) {5}");
|
||||
} catch (e) {
|
||||
assert(false);
|
||||
assert(false);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("var a = [] /foo/");
|
||||
assert(false);
|
||||
eval("var a = [] /foo/");
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof SyntaxError);
|
||||
assert(e instanceof SyntaxError);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("/");
|
||||
assert(false);
|
||||
eval("/");
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof SyntaxError);
|
||||
assert(e instanceof SyntaxError);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("var x = /aaa/");
|
||||
eval("var x = /aaa/");
|
||||
} catch (e) {
|
||||
assert (false);
|
||||
assert (false);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("{}/a/g");
|
||||
eval("{}/a/g");
|
||||
} catch (e) {
|
||||
assert (false);
|
||||
assert (false);
|
||||
}
|
||||
|
||||
try {
|
||||
eval("var a, g; +{}/a/g");
|
||||
eval("var a, g; +{}/a/g");
|
||||
} catch (e) {
|
||||
assert (false);
|
||||
assert (false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user