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:
@@ -53,11 +53,11 @@ var obj = { unshift : Array.prototype.unshift };
|
||||
Object.defineProperty(obj, 'length', { 'get' : function () {throw new ReferenceError ("foo"); } });
|
||||
|
||||
try {
|
||||
obj.unshift(1);
|
||||
assert(false)
|
||||
obj.unshift(1);
|
||||
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
|
||||
@@ -65,11 +65,11 @@ var obj = { unshift : Array.prototype.unshift };
|
||||
Object.defineProperty(obj, 'length', { 'set' : function () {throw new ReferenceError ("foo"); } });
|
||||
|
||||
try {
|
||||
obj.unshift(2);
|
||||
assert(false)
|
||||
obj.unshift(2);
|
||||
assert(false)
|
||||
} catch (e) {
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
// Checking behavior when unable shift elements
|
||||
@@ -77,22 +77,22 @@ var obj = { unshift : Array.prototype.unshift, length : 1 };
|
||||
Object.defineProperty(obj, '0', { 'get' : function () {throw new ReferenceError ("foo"); } });
|
||||
|
||||
try {
|
||||
obj.unshift(3);
|
||||
assert(false);
|
||||
obj.unshift(3);
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
var obj = { unshift : Array.prototype.unshift, length : 1 };
|
||||
Object.defineProperty(obj, '0', { 'set' : function () {throw new ReferenceError ("foo"); } });
|
||||
|
||||
try {
|
||||
obj.unshift(4);
|
||||
assert(false);
|
||||
obj.unshift(4);
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
assert(e.message === "foo");
|
||||
assert(e instanceof ReferenceError);
|
||||
}
|
||||
|
||||
// Checking behavior when a property is not defined
|
||||
@@ -101,4 +101,4 @@ assert(obj.unshift("baz") === 4);
|
||||
assert(obj[0] === "baz");
|
||||
assert(obj[1] === "foo");
|
||||
assert(obj[2] === undefined);
|
||||
assert(obj[3] === "bar");
|
||||
assert(obj[3] === "bar");
|
||||
|
||||
Reference in New Issue
Block a user