summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/create/15.2.3.5-4-26.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:43:48 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:43:48 +0200
commitf3e919209c6011365e662633962699285254ae11 (patch)
treee90f712306e93be7e3ad1d3da4b6ead9152e50ed /test/built-ins/Object/create/15.2.3.5-4-26.js
parent1f97345668236508d8148f28fece4f4a190a6543 (diff)
downloadqtdeclarative-testsuites-f3e919209c6011365e662633962699285254ae11.tar.gz
Replace runTestCase with assert.throws [test/built-ins/Object]
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-26.js')
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-26.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-26.js b/test/built-ins/Object/create/15.2.3.5-4-26.js
index aecc5f594..90605aece 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-26.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-26.js
@@ -6,22 +6,13 @@ es5id: 15.2.3.5-4-26
description: >
Object.create - TypeError is thrown when own enumerable accessor
property of 'Properties' without a get function (15.2.3.7 step 5.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
-
var props = {};
Object.defineProperty(props, "prop", {
set: function () { },
enumerable: true
});
- try {
+assert.throws(TypeError, function() {
Object.create({}, props);
-
- return false;
- } catch (ex) {
- return ex instanceof TypeError;
- }
- }
-runTestCase(testcase);
+});