diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2015-09-04 15:20:26 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2015-09-04 15:20:26 -0400 |
commit | 9ccc6639360ea28161d9eb97b40a99ef846ee2bc (patch) | |
tree | de119d7c5ff1be969514de26178166a389f50e6e /test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js | |
parent | 2bfe4a47166ef9bb32d65d12e5115965a9378b16 (diff) | |
parent | bd603294cb6d09905a51dc398271f985665d83ca (diff) | |
download | qtdeclarative-testsuites-9ccc6639360ea28161d9eb97b40a99ef846ee2bc.tar.gz |
Merge pull request #415 from anba/remove-runTestCase-finally
Replace runTestCase when used with try-finally
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js index bead27b7f..7c1a48bc1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js @@ -7,17 +7,12 @@ description: > Object.defineProperties - 'descObj' is the global object which implements its own [[Get]] method to get 'enumerable' property (8.10.5 step 3.a) -includes: - - runTestCase.js - - fnGlobalObject.js +includes: [fnGlobalObject.js] ---*/ -function testcase() { - var obj = {}; var accessed = false; - try { fnGlobalObject().enumerable = true; Object.defineProperties(obj, { @@ -28,9 +23,5 @@ function testcase() { accessed = true; } } - return accessed; - } finally { - delete fnGlobalObject().enumerable; - } - } -runTestCase(testcase); + +assert(accessed, 'accessed !== true'); |