diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-09 11:35:37 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 11:35:37 -0500 |
commit | a01de4a722d088055a7d84d8c691ddd7109edb34 (patch) | |
tree | f583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/Object/prototype | |
parent | 7b01f9799f99851955f23c18c12e6651c1941022 (diff) | |
download | qtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz |
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/Object/prototype')
95 files changed, 439 insertions, 193 deletions
diff --git a/test/built-ins/Object/prototype/15.2.3.1.js b/test/built-ins/Object/prototype/15.2.3.1.js index fb0ddee7f..636b72df5 100644 --- a/test/built-ins/Object/prototype/15.2.3.1.js +++ b/test/built-ins/Object/prototype/15.2.3.1.js @@ -8,7 +8,7 @@ description: > (false) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); +var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A1.js b/test/built-ins/Object/prototype/S15.2.3.1_A1.js index 44b0ea6e6..a182b4f73 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A1.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A1.js @@ -9,7 +9,9 @@ includes: [propertyHelper.js] ---*/ var obj = Object.prototype; -verifyNotWritable(Object, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Object, "prototype", null, function() { + return "shifted"; +}); //CHECK#1 if (Object.prototype !== obj) { diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A2.js b/test/built-ins/Object/prototype/S15.2.3.1_A2.js index 996c86525..96ee379f6 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A2.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A2.js @@ -13,10 +13,10 @@ if (Object.propertyIsEnumerable('prototype')) { } // CHECK#2 -var cout=0; +var cout = 0; -for (var p in Object){ - if (p==="prototype") cout++; +for (var p in Object) { + if (p === "prototype") cout++; } if (cout !== 0) { diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A3.js b/test/built-ins/Object/prototype/S15.2.3.1_A3.js index 5b7c6e5ea..d2ffa50ca 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A3.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A3.js @@ -11,7 +11,7 @@ verifyNotConfigurable(Object, "prototype"); //CHECK#1 try { - if((delete Object.prototype) !== false){ + if ((delete Object.prototype) !== false) { $ERROR('#1: Object.prototype has the attribute DontDelete'); } } catch (e) { diff --git a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js index 9fd0c15bb..f92c6b479 100644 --- a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js +++ b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js @@ -22,7 +22,7 @@ try { $ERROR('#2: Object prototype object has not prototype'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e)); } } // diff --git a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js index 07679b274..a9fe41761 100644 --- a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js +++ b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js @@ -31,7 +31,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object() calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js index 29e824587..a4330a78e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js @@ -6,6 +6,6 @@ es5id: 8.12.1-1_1 description: Properties - [[HasOwnProperty]] (property does not exist) ---*/ - var o = {}; +var o = {}; assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js index 0e5e905e3..ae6b1928a 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js @@ -8,7 +8,11 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js index d4f3d3903..2b78847eb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js @@ -8,7 +8,12 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js index 99004855e..a462ab199 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js @@ -8,8 +8,10 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42 +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js index c12d0c344..33cfbaac2 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js @@ -8,8 +8,11 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js index 0dcb8a61a..f021397a3 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js index 54baa8f1a..5086fe3bd 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js index 6474f7f80..397f69ab0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js index ac6c14ab3..36c5ce1b6 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js index 8b8120c5c..521513632 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js @@ -8,8 +8,12 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js index 6eec46644..bda83b039 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js @@ -8,8 +8,13 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js index 9e51b6eb9..a10bb3821 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js @@ -6,6 +6,8 @@ es5id: 8.12.1-1_2 description: Properties - [[HasOwnProperty]] (old style own property) ---*/ - var o = {foo: 42}; +var o = { + foo: 42 +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js index 4c6c466f3..60febfc14 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js @@ -6,6 +6,10 @@ es5id: 8.12.1-1_20 description: Properties - [[HasOwnProperty]] (literal own getter property) ---*/ - var o = { get foo() { return 42;} }; +var o = { + get foo() { + return 42; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js index aa8236e3b..f8795d0f5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js @@ -6,6 +6,9 @@ es5id: 8.12.1-1_21 description: Properties - [[HasOwnProperty]] (literal own setter property) ---*/ - var o = { set foo(x) {;} }; +var o = { + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js index b23a22bfc..e18229b91 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js @@ -8,6 +8,12 @@ description: > property) ---*/ - var o = { get foo() { return 42;}, set foo(x) {;} }; +var o = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js index 4e2587b1c..7f025a822 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js @@ -6,7 +6,11 @@ es5id: 8.12.1-1_23 description: Properties - [[HasOwnProperty]] (literal inherited getter property) ---*/ - var base = { get foo() { return 42;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js index cf1cac60b..641f96b32 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js @@ -6,7 +6,10 @@ es5id: 8.12.1-1_24 description: Properties - [[HasOwnProperty]] (literal inherited setter property) ---*/ - var base = { set foo(x) {;} }; - var o = Object.create(base); +var base = { + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js index fdb1e6d3a..e2620ce47 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js @@ -8,7 +8,13 @@ description: > property) ---*/ - var base = { get foo() { return 42;}, set foo(x) {;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js index fd15435b5..a80a34623 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js @@ -8,7 +8,11 @@ description: > own getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js index 6d8b4634d..5940f377e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js index 19bcb8142..122313417 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js index 01587705d..d048b990f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js @@ -8,7 +8,13 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js index 8c851da5a..5e3001064 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js @@ -6,7 +6,9 @@ es5id: 8.12.1-1_3 description: Properties - [[HasOwnProperty]] (old style inherited property) ---*/ - var base = {foo:42}; - var o = Object.create(base); +var base = { + foo: 42 +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js index 5d12f52ff..7cc54bf8c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js @@ -8,7 +8,10 @@ description: > own setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js index 0e9e30575..915cf98a0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js index f0a345b0b..0723ab84b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js index 1b7e60c21..1cdaa72f6 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js @@ -8,7 +8,12 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js index 2b34bf9b6..4fb47b26e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js @@ -8,7 +8,13 @@ description: > own getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js index 01ef0ead2..5479c80e4 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js index a07762869..43f18c8eb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js index 1938b5a2c..518209e48 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js @@ -8,7 +8,15 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js index 801ecdaee..2c9bbbfbb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js @@ -8,8 +8,12 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js index 5a0e15903..1fbdea763 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js index dac63b029..ecb418e5b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js @@ -8,7 +8,9 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42 +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js index a04fd4369..b2f7e70bc 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js index bf0dbd47d..9e94e6664 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js @@ -8,8 +8,14 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js index 97bab311f..705516ffb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js @@ -8,8 +8,11 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js index baa392b1f..a66ec81a8 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js index 07b368234..111459fe2 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js index 68c0517cc..1e160d7bb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js @@ -8,8 +8,13 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js index 1ff589a9b..aaecbc8cc 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js @@ -8,8 +8,14 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js index 16bc5d71b..abbb759e0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js index 0a9c741ff..7f69fbd29 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js index d492e9ee8..b8a66b8d5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js @@ -8,8 +8,16 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js index 19d6229e9..4a11bd83f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js @@ -8,7 +8,10 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js index 76bd5649c..09a91470d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js index 8c6ea6884..34350c2f1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js index 384f1c801..633ea1181 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js index e17903b7c..12dcc4500 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js index fee99fa5b..67b8c7ae8 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { var obj = Object.prototype.hasOwnProperty.length; -verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.hasOwnProperty.length !== obj) { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js index 27b0f780b..7fa88ceae 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js @@ -17,7 +17,9 @@ if (typeof Object.prototype.hasOwnProperty !== "function") { $ERROR('#1: hasOwnProperty method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.hasOwnProperty !== "function") { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js index dbe38a78d..9108ec962 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js @@ -14,8 +14,8 @@ description: > function object ---*/ -var FACTORY = function(){ - this.aproperty = 1; +var FACTORY = function() { + this.aproperty = 1; }; var instance = new FACTORY; diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js index e49432003..9318f2321 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.hasOwnProperty.prototype !== undefined) { - $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property'+Object.prototype.hasOwnProperty.prototype); + $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property' + Object.prototype.hasOwnProperty.prototype); } // diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js index a4df74d40..78e728269 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.hasOwnProperty.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.hasOwnProperty){ - if (p==="length") - $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum'); +for (var p in Object.prototype.hasOwnProperty) { + if (p === "length") + $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js index 1b87a6c6e..5f27c33bf 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js @@ -9,16 +9,20 @@ es5id: 15.2.4.6_A1 description: Creating two objects with the same prototype ---*/ -function USER_FACTORY( name ) { +function USER_FACTORY(name) { this.name = name; - this.getName=function(){return name;}; + this.getName = function() { + return name; + }; } -function FORCEDUSER_FACTORY( name, grade ) { - this.name = name; +function FORCEDUSER_FACTORY(name, grade) { + this.name = name; this.grade = grade; - this.getGrade=function(){return grade;}; + this.getGrade = function() { + return grade; + }; } var proto = new USER_FACTORY("noname"); @@ -48,7 +52,7 @@ assert.sameValue( ///////// ////// // CHECK#3 -if(Number.isPrototypeOf(luke)){ +if (Number.isPrototypeOf(luke)) { $ERROR('#2: Native ECMAScript objects have an internal property called [[Prototype]].'); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js index 264eead2e..a1d728169 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { var obj = Object.prototype.isPrototypeOf.length; -verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.isPrototypeOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js index dd63755a1..3ab10f971 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.isPrototypeOf.prototype !== undefined) { - $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property'+Object.prototype.isPrototypeOf.prototype); + $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property' + Object.prototype.isPrototypeOf.prototype); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js index c50e0a097..8c959469b 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.isPrototypeOf.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.isPrototypeOf){ - if (p==="length") - $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum'); +for (var p in Object.prototype.isPrototypeOf) { + if (p === "length") + $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js index 6450d5b30..8bef9171c 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { var obj = Object.prototype.propertyIsEnumerable.length; -verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.propertyIsEnumerable.length !== obj) { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js index a28b7c621..a571b5a29 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js @@ -16,13 +16,17 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var proto={rootprop:"avis"}; +var proto = { + rootprop: "avis" +}; -function AVISFACTORY(name){this.name=name}; +function AVISFACTORY(name) { + this.name = name +}; AVISFACTORY.prototype = proto; -var seagull= new AVISFACTORY("seagull"); +var seagull = new AVISFACTORY("seagull"); //CHECK#2 if (typeof seagull.propertyIsEnumerable !== "function") { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js index 5df54cfcc..16aa7b4e2 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js @@ -20,7 +20,9 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.propertyIsEnumerable !== "function") { @@ -33,11 +35,11 @@ if (!(obj.propertyIsEnumerable("the_property"))) { } //CHECK#4 -var accum=""; -for(var prop in obj) { - accum+=prop; +var accum = ""; +for (var prop in obj) { + accum += prop; } -if (accum.indexOf("the_property")!==0) { +if (accum.indexOf("the_property") !== 0) { $ERROR('#4: enumerating works properly'); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js index 4e093cda9..001f70b48 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.propertyIsEnumerable.prototype !== undefined) { - $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property'+Object.prototype.propertyIsEnumerable.prototype); + $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property' + Object.prototype.propertyIsEnumerable.prototype); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js index a9a87c5da..70465fab8 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.propertyIsEnumerable.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.propertyIsEnumerable){ - if (p==="length") - $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); +for (var p in Object.prototype.propertyIsEnumerable) { + if (p === "length") + $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js index 9f81cd598..c1fad81ff 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js @@ -20,6 +20,6 @@ if (Object.prototype.toLocaleString() !== Object.prototype.toString()) { } //CHECK#2 -if ({}.toLocaleString()!=={}.toString()) { +if ({}.toLocaleString() !== {}.toString()) { $ERROR('#2: toLocaleString function returns the result of calling toString()'); } diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js index e07bb39a1..874c1a86a 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { var obj = Object.prototype.toLocaleString.length; -verifyNotWritable(Object.prototype.toLocaleString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toLocaleString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toLocaleString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js index 2ba063780..21474c3d6 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.toLocaleString.prototype !== undefined) { - $ERROR('#1: Object.prototype.toLocaleString has not prototype property'+Object.prototype.toLocaleString.prototype); + $ERROR('#1: Object.prototype.toLocaleString has not prototype property' + Object.prototype.toLocaleString.prototype); } // diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js index adddc36be..4e6402e8c 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.toLocaleString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.toLocaleString){ - if (p==="length") - $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum'); +for (var p in Object.prototype.toLocaleString) { + if (p === "length") + $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js index d9aea6b89..6aee4b330 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js @@ -19,11 +19,11 @@ if (typeof Object.prototype.toString !== "function") { } //CHECK#2 -if (Object.prototype.toString() !=="[object "+"Object"+"]") { +if (Object.prototype.toString() !== "[object " + "Object" + "]") { $ERROR('#2: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"'); } //CHECK#3 -if ({}.toString()!=="[object "+"Object"+"]") { +if ({}.toString() !== "[object " + "Object" + "]") { $ERROR('#3: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js index 9478a50d7..39321f620 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.toString.hasOwnProperty('length'))) { var obj = Object.prototype.toString.length; -verifyNotWritable(Object.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js index 86e338520..496eec11b 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call(33) !== "[object Number]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js index 37eedc92a..078962da3 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call(true) !== "[object Boolean]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js index c1081121c..616a35f09 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call('foo') !== "[object String]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js index 08a81d649..6c8e0d7ad 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.toString.prototype !== undefined) { - $ERROR('#1: Object.prototype.toString has not prototype property'+Object.prototype.toString.prototype); + $ERROR('#1: Object.prototype.toString has not prototype property' + Object.prototype.toString.prototype); } // diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js index 5432ecd3b..8a38eaa0e 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js @@ -21,8 +21,8 @@ if (Object.prototype.toString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.toString){ - if (p==="length") - $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum'); +for (var p in Object.prototype.toString) { + if (p === "length") + $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js index 6297a4aeb..ae3d4adc9 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js @@ -34,5 +34,9 @@ assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); custom[Symbol.toStringTag] = {}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); -custom[Symbol.toStringTag] = { toString: function() { return 'str'; } }; +custom[Symbol.toStringTag] = { + toString: function() { + return 'str'; + } +}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js index 48d20a419..26f9f4bbf 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js @@ -24,7 +24,9 @@ custom = new String(); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); -custom = (function() { return arguments; }()); +custom = (function() { + return arguments; +}()); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js index 83df8a3bd..c8d3c25a5 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { var obj = Object.prototype.valueOf.length; -verifyNotWritable(Object.prototype.valueOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.valueOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.valueOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js index a041be8bf..b09d95dea 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - Object.prototype.valueOf.call(undefined); + Object.prototype.valueOf.call(undefined); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js index f576d726f..bff652786 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - (1,Object.prototype.valueOf)(); + (1, Object.prototype.valueOf)(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js index 4b296a9c2..147a31aee 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js @@ -12,5 +12,5 @@ description: Checking Object.prototype.valueOf when called as a global function. var v = Object.prototype.valueOf; assert.throws(TypeError, function() { - v(); + v(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js index b138c58dc..31e763a47 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(1.1); +var obj = new Object(1.1); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==1.1) { +if (obj.valueOf() !== 1.1) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js index 7cddd7100..116cfeec6 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(true); +var obj = new Object(true); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==true) { +if (obj.valueOf() !== true) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js index 0374674c8..7a62551a3 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object("greenfield"); +var obj = new Object("greenfield"); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!=="greenfield") { +if (obj.valueOf() !== "greenfield") { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js index 0c1e63062..b5e10ce3f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object; +var obj = new Object; //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js index 4ab7b5b4f..ad158cea2 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(null); +var obj = new Object(null); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js index bbf95febd..b371d63d0 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(undefined); +var obj = new Object(undefined); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js index e8a246064..61befa57c 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(void 0); +var obj = new Object(void 0); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js index b9cc6e21f..931f2d41f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.valueOf.prototype !== undefined) { - $ERROR('#1: Object.prototype.valueOf has not prototype property'+Object.prototype.valueOf.prototype); + $ERROR('#1: Object.prototype.valueOf has not prototype property' + Object.prototype.valueOf.prototype); } // diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js index 384ef8319..424e64330 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js @@ -21,8 +21,8 @@ if (Object.prototype.valueOf.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.valueOf){ - if (p==="length") - $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); +for (var p in Object.prototype.valueOf) { + if (p === "length") + $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); } // |