diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-254.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-254.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js index 32c2e69be..215cd639d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js @@ -7,10 +7,8 @@ description: > Object.defineProperty - 'Attributes' is a Date object that uses Object's [[Get]] method to access the 'set' property (8.10.5 step 8.a) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; var data = "data"; var dateObj = new Date(); @@ -22,6 +20,5 @@ function testcase() { Object.defineProperty(obj, "property", dateObj); obj.property = "overrideData"; - return obj.hasOwnProperty("property") && data === "overrideData"; - } -runTestCase(testcase); +assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); +assert.sameValue(data, "overrideData", 'data'); |