summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
index fd639efc4..7db3da876 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js
@@ -7,10 +7,8 @@ description: >
ES5 Attributes - Updating an indexed accessor property 'P' using
simple assignment is successful, 'A' is an Array object (8.12.5
step 5.b)
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = [];
obj.verifySetFunc = "data";
@@ -33,6 +31,6 @@ function testcase() {
var propertyDefineCorrect = obj.hasOwnProperty("0");
var desc = Object.getOwnPropertyDescriptor(obj, "0");
- return propertyDefineCorrect && desc.set === setFunc && obj.verifySetFunc === "overrideData";
- }
-runTestCase(testcase);
+assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
+assert.sameValue(desc.set, setFunc, 'desc.set');
+assert.sameValue(obj.verifySetFunc, "overrideData", 'obj.verifySetFunc');