summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:56:55 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:57:23 +0200
commit4ec97779fdea46207c589dbe36f41785343a61a8 (patch)
tree031e2fc65c79fd3755cf4e61f0abee44e035ac3f /test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
parent1b14708467b4cab8055effad884071123637e475 (diff)
downloadqtdeclarative-testsuites-4ec97779fdea46207c589dbe36f41785343a61a8.tar.gz
Replace runTestCase with assert helpers, rest [test/built-ins]
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
index 500c57c37..80b584e9f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
@@ -5,10 +5,9 @@
es5id: 15.4.4.18-5-1
description: Array.prototype.forEach - thisArg is passed
flags: [noStrict]
-includes: [runTestCase.js]
---*/
-function testcase() {
+(function() {
this._15_4_4_18_5_1 = false;
var _15_4_4_18_5_1 = true;
var result;
@@ -17,6 +16,6 @@ function testcase() {
}
var arr = [1];
arr.forEach(callbackfn)
- return !result;
- }
-runTestCase(testcase);
+
+assert.sameValue(result, false, 'result');
+})();