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:
@@ -34,7 +34,7 @@ assert(array.shift() === undefined);
|
||||
assert(array.length === 0);
|
||||
|
||||
var referenceErrorThrower = function () {
|
||||
throw new ReferenceError ("foo");
|
||||
throw new ReferenceError ("foo");
|
||||
}
|
||||
|
||||
// Checking behavior when unable to get length
|
||||
@@ -42,11 +42,11 @@ var obj = { shift : Array.prototype.shift };
|
||||
Object.defineProperty(obj, 'length', { 'get' : referenceErrorThrower });
|
||||
|
||||
try {
|
||||
obj.shift();
|
||||
assert(false);
|
||||
obj.shift();
|
||||
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 set length
|
||||
@@ -54,11 +54,11 @@ var obj = { shift : Array.prototype.shift };
|
||||
Object.defineProperty(obj, 'length', { 'set' : referenceErrorThrower });
|
||||
|
||||
try {
|
||||
obj.shift();
|
||||
assert(false);
|
||||
obj.shift();
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
// Checking behavior when no length property defined
|
||||
@@ -72,9 +72,9 @@ var obj = { shift : Array.prototype.shift, length : 1 };
|
||||
Object.defineProperty(obj, '0', { 'get' : referenceErrorThrower });
|
||||
|
||||
try {
|
||||
obj.shift();
|
||||
assert(false);
|
||||
obj.shift();
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user