summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-06 18:14:23 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-06 18:14:23 +0200
commite8246fd9f09da643bddc467229fa48f81c698978 (patch)
treed657d875dda36f5ea2e4ce7f13694056f896bfc4 /test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
parentce98c25647f0de5294fc3986eddfd73f75076fab (diff)
downloadqtdeclarative-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-21.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
index 58c70d062..083cb472e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
@@ -6,11 +6,8 @@ es5id: 15.4.4.18-7-c-ii-21
description: >
Array.prototype.forEach - callbackfn called with correct
parameters (kValue is correct)
-includes: [runTestCase.js]
---*/
-function testcase() {
-
var resultOne = false;
var resultTwo = false;
@@ -28,6 +25,6 @@ function testcase() {
var obj = { 0: 11, 1: 12, length: 2 };
Array.prototype.forEach.call(obj, callbackfn);
- return resultOne && resultTwo;
- }
-runTestCase(testcase);
+
+assert(resultOne, 'resultOne !== true');
+assert(resultTwo, 'resultTwo !== true');