diff options
Diffstat (limited to 'test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js')
-rw-r--r-- | test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js index 52e280f1c..7ac1d9810 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js @@ -9,10 +9,16 @@ description: > data property on an Array-like object ---*/ - Object.prototype[0] = true; - Object.prototype[1] = false; - Object.prototype[2] = "true"; +Object.prototype[0] = true; +Object.prototype[1] = false; +Object.prototype[2] = "true"; -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); |