summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-248.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-248.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
index 2bcb5703d..2f473b986 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js
@@ -7,10 +7,8 @@ description: >
Object.defineProperty - 'Attributes' is a Function object which
implements its own [[Get]] method to access the 'set' property
(8.10.5 step 8.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = {};
var data = "data";
var funObj = function () { };
@@ -22,6 +20,5 @@ function testcase() {
Object.defineProperty(obj, "property", funObj);
obj.property = "overrideData";
- return obj.hasOwnProperty("property") && data === "overrideData";
- }
-runTestCase(testcase);
+assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
+assert.sameValue(data, "overrideData", 'data');