diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-07 18:40:21 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:50:58 +0200 |
commit | 1b14708467b4cab8055effad884071123637e475 (patch) | |
tree | abf158b9b4b7f97ffd98a4c419c0f00b7d7d5f62 /test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js | |
parent | 39b5b7272c0cedb9d55c243dd75e98c263056451 (diff) | |
download | qtdeclarative-testsuites-1b14708467b4cab8055effad884071123637e475.tar.gz |
Replace runTestCase with assert helpers [test/built-ins]
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js index 991e6aea1..ca1d17e24 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js @@ -7,10 +7,8 @@ description: > Array.prototype.reduce returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden with obj w/o valueOf (toString)) -includes: [runTestCase.js] ---*/ -function testcase() { foo.prototype = new Array(1, 2, 3); function foo() {} var f = new foo(); @@ -25,10 +23,4 @@ function testcase() { // resulting string to a number. function cb(){} - try { - if(f.reduce(cb,1) === 1) - return true; - } - catch (e) { } - } -runTestCase(testcase); +assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); |