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:
Akos Kiss
2015-11-28 21:42:27 +01:00
parent 133fc6adfd
commit ab68d093e8
27 changed files with 282 additions and 282 deletions
+16 -16
View File
@@ -16,19 +16,19 @@
var array = ["foo", [], Infinity, 4];
function f(arg1, arg2, arg3) {
assert(arg1 === array[arg2]);
assert(arg3 === array);
return false;
assert(arg1 === array[arg2]);
assert(arg3 === array);
return false;
}
assert(array.some(f) === false);
function g(arg1, arg2, arg3) {
if (arg1 === 1) {
return true;
} else {
return false;
}
if (arg1 === 1) {
return true;
} else {
return false;
}
}
var arr1 = [2, 2, 2, 2, 2, 2];
@@ -42,11 +42,11 @@ var obj = { some : Array.prototype.some };
Object.defineProperty(obj, 'length', { 'get' : function () {throw new ReferenceError ("foo"); } });
try {
obj.some(f);
assert(false);
obj.some(f);
assert(false);
} catch (e) {
assert(e.message === "foo");
assert(e instanceof ReferenceError);
assert(e.message === "foo");
assert(e instanceof ReferenceError);
}
// Checking behavior when unable to get element
@@ -54,9 +54,9 @@ var obj = { some : Array.prototype.some, length : 1};
Object.defineProperty(obj, '0', { 'get' : function () {throw new ReferenceError ("foo"); } });
try {
obj.some(f);
assert(false);
obj.some(f);
assert(false);
} catch (e) {
assert(e.message === "foo");
assert(e instanceof ReferenceError);
assert(e.message === "foo");
assert(e instanceof ReferenceError);
}