summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:42:21 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-13 17:42:40 +0200
commit52a706c0223d446394256a748b384f70cc72afc0 (patch)
treec84bf3162aee14a0e5b2e6726b96983ed730a349 /test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
parent6b48d9f1b29452db77403410d6d15c0de4a8ea21 (diff)
downloadqtdeclarative-testsuites-52a706c0223d446394256a748b384f70cc72afc0.tar.gz
Replace runTestCase with assert, try-finally, [test/built-ins/Array]
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
index fee268da8..da4e0699b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
@@ -6,11 +6,8 @@ es5id: 15.4.4.17-7-c-i-16
description: >
Array.prototype.some - element to be retrieved is inherited
accessor property on an Array
-includes: [runTestCase.js]
---*/
-function testcase() {
-
var kValue = "abc";
function callbackfn(val, idx, obj) {
@@ -20,7 +17,6 @@ function testcase() {
return false;
}
- try {
Object.defineProperty(Array.prototype, "1", {
get: function () {
return kValue;
@@ -28,9 +24,4 @@ function testcase() {
configurable: true
});
- return [, , ].some(callbackfn);
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+assert([, , ].some(callbackfn), '[, , ].some(callbackfn) !== true');