summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:53:17 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:53:17 +0200
commit44bc67797e18007cddc14ad2f41196abfe214129 (patch)
treec1a95e3d18cbad5f15ee9ea4d809e5bd25278583 /test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
parent0a37298b4686b9f3a81a16036c9af1c1a18611bd (diff)
downloadqtdeclarative-testsuites-44bc67797e18007cddc14ad2f41196abfe214129.tar.gz
Replace runTestCase with assert helpers [test/built-ins/Object/defineProperties]
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
index b2dc231b5..4d826caed 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js
@@ -8,10 +8,8 @@ description: >
named property, 'P' property doesn't exist in 'O', test [[Value]]
of 'P' property in 'Attributes' is set as undefined value if
[[Value]] is absent in data descriptor 'desc' (15.4.5.1 step 4.c)
-includes: [runTestCase.js]
---*/
-function testcase() {
var arr = [];
Object.defineProperties(arr, {
@@ -22,6 +20,5 @@ function testcase() {
}
});
- return arr.hasOwnProperty("0") && typeof (arr[0]) === "undefined";
- }
-runTestCase(testcase);
+assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true');
+assert.sameValue(typeof (arr[0]), "undefined", 'typeof (arr[0])');