diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-06 18:14:23 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-06 18:14:23 +0200 |
commit | e8246fd9f09da643bddc467229fa48f81c698978 (patch) | |
tree | d657d875dda36f5ea2e4ce7f13694056f896bfc4 /test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js | |
parent | ce98c25647f0de5294fc3986eddfd73f75076fab (diff) | |
download | qtdeclarative-testsuites-e8246fd9f09da643bddc467229fa48f81c698978.tar.gz |
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/forEach]
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js index 6c370fccf..57df71775 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js @@ -4,11 +4,8 @@ /*--- es5id: 15.4.4.18-7-c-ii-1 description: Array.prototype.forEach - callbackfn called with correct parameters -includes: [runTestCase.js] ---*/ -function testcase() { - var bPar = true; var bCalled = false; function callbackfn(val, idx, obj) @@ -21,7 +18,6 @@ function testcase() { var arr = [0,1,true,null,new Object(),"five"]; arr[999999] = -6.6; arr.forEach(callbackfn); - if(bCalled === true && bPar === true) - return true; - } -runTestCase(testcase); + +assert.sameValue(bCalled, true, 'bCalled'); +assert.sameValue(bPar, true, 'bPar'); |