summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/keys/15.2.3.14-5-11.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/Object/keys/15.2.3.14-5-11.js
parent1b14708467b4cab8055effad884071123637e475 (diff)
downloadqtdeclarative-testsuites-4ec97779fdea46207c589dbe36f41785343a61a8.tar.gz
Replace runTestCase with assert helpers, rest [test/built-ins]
Diffstat (limited to 'test/built-ins/Object/keys/15.2.3.14-5-11.js')
-rw-r--r--test/built-ins/Object/keys/15.2.3.14-5-11.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-11.js b/test/built-ins/Object/keys/15.2.3.14-5-11.js
index 2b34b9927..3a6c31e0c 100644
--- a/test/built-ins/Object/keys/15.2.3.14-5-11.js
+++ b/test/built-ins/Object/keys/15.2.3.14-5-11.js
@@ -6,10 +6,8 @@ es5id: 15.2.3.14-5-11
description: >
Object.keys - own enumerable indexed data property of dense array
'O' is defined in returned array
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = [1, 2, 3, 4, 5];
var arr = Object.keys(obj);
@@ -17,13 +15,7 @@ function testcase() {
var initValue = 0;
for (var p in arr) {
if (arr.hasOwnProperty(p)) {
- if (arr[p] !== initValue.toString()) {
- return false;
- }
+ assert.sameValue(arr[p], initValue.toString(), 'arr[p]');
initValue++;
}
}
-
- return true;
- }
-runTestCase(testcase);