diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-11 17:53:17 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-11 17:53:17 +0200 |
commit | 44bc67797e18007cddc14ad2f41196abfe214129 (patch) | |
tree | c1a95e3d18cbad5f15ee9ea4d809e5bd25278583 /test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js | |
parent | 0a37298b4686b9f3a81a16036c9af1c1a18611bd (diff) | |
download | qtdeclarative-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-5-b-229.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js index 61abe17c9..5554bdbc3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js @@ -6,10 +6,8 @@ es5id: 15.2.3.7-5-b-229 description: > Object.defineProperties - 'set' property of 'descObj' is inherited data property (8.10.5 step 8.a) -includes: [runTestCase.js] ---*/ -function testcase() { var data = "data"; var proto = { set: function (value) { @@ -29,6 +27,5 @@ function testcase() { obj.prop = "overrideData"; - return obj.hasOwnProperty("prop") && data === "overrideData"; - } -runTestCase(testcase); +assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); +assert.sameValue(data, "overrideData", 'data'); |