diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-11 17:53:40 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-11 17:53:40 +0200 |
commit | 4f35b40617f9902f56839bd3bc0ba9e7664301c8 (patch) | |
tree | 787b6369b126f8f113e3a85242103cf1986e2cdf /test/built-ins/Object/prototype/toString | |
parent | 44bc67797e18007cddc14ad2f41196abfe214129 (diff) | |
download | qtdeclarative-testsuites-4f35b40617f9902f56839bd3bc0ba9e7664301c8.tar.gz |
Replace runTestCase with assert helpers [test/built-ins/Object]
Diffstat (limited to 'test/built-ins/Object/prototype/toString')
4 files changed, 4 insertions, 20 deletions
diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js b/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js index 9e7131ac4..801dfbaf6 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-1-1.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-1 description: > Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.call(undefined) === "[object Undefined]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.call(undefined), "[object Undefined]", 'Object.prototype.toString.call(undefined)'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js b/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js index bcec70206..c6daf2500 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-1-2.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-1-2 description: > Object.prototype.toString - '[object Undefined]' will be returned when 'this' value is undefined -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.apply(undefined, []) === "[object Undefined]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.apply(undefined, []), "[object Undefined]", 'Object.prototype.toString.apply(undefined, [])'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js b/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js index 6bc291ddb..ee6120a79 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-2-1.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-1 description: > Object.prototype.toString - '[object Null]' will be returned when 'this' value is null -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.call(null) === "[object Null]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.call(null), "[object Null]", 'Object.prototype.toString.call(null)'); diff --git a/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js b/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js index 5f0f42dc6..194597ab0 100644 --- a/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js +++ b/test/built-ins/Object/prototype/toString/15.2.4.2-2-2.js @@ -6,10 +6,6 @@ es5id: 15.2.4.2-2-2 description: > Object.prototype.toString - '[object Null]' will be returned when 'this' value is null -includes: [runTestCase.js] ---*/ -function testcase() { - return Object.prototype.toString.apply(null, []) === "[object Null]"; - } -runTestCase(testcase); +assert.sameValue(Object.prototype.toString.apply(null, []), "[object Null]", 'Object.prototype.toString.apply(null, [])'); |