diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:56:55 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:57:23 +0200 |
commit | 4ec97779fdea46207c589dbe36f41785343a61a8 (patch) | |
tree | 031e2fc65c79fd3755cf4e61f0abee44e035ac3f /test/built-ins/Object/defineProperty/15.2.3.6-4-424.js | |
parent | 1b14708467b4cab8055effad884071123637e475 (diff) | |
download | qtdeclarative-testsuites-4ec97779fdea46207c589dbe36f41785343a61a8.tar.gz |
Replace runTestCase with assert helpers, rest [test/built-ins]
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-424.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-424.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js index 4d09765c2..1cfca488e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js @@ -7,10 +7,10 @@ description: > ES5 Attributes - property ([[Get]] is undefined, [[Set]] is undefined, [[Enumerable]] is true, [[Configurable]] is true) is enumerable -includes: [runTestCase.js] ---*/ -function testcase() { +var propertyFound = false; + var obj = {}; Object.defineProperty(obj, "prop", { @@ -25,10 +25,11 @@ function testcase() { for (var p in obj) { if (p === "prop") { - return propertyDefineCorrect && desc.enumerable === true; + propertyFound = true; + break; } } - return false; - } -runTestCase(testcase); +assert(propertyFound, 'Property not found'); +assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); +assert.sameValue(desc.enumerable, true, 'desc.enumerable'); |