diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-07 18:40:21 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-13 17:50:58 +0200 |
commit | 1b14708467b4cab8055effad884071123637e475 (patch) | |
tree | abf158b9b4b7f97ffd98a4c419c0f00b7d7d5f62 /test/language | |
parent | 39b5b7272c0cedb9d55c243dd75e98c263056451 (diff) | |
download | qtdeclarative-testsuites-1b14708467b4cab8055effad884071123637e475.tar.gz |
Replace runTestCase with assert helpers [test/built-ins]
Diffstat (limited to 'test/language')
4 files changed, 5 insertions, 23 deletions
diff --git a/test/language/expressions/delete/11.4.1-2-1.js b/test/language/expressions/delete/11.4.1-2-1.js index 4d88210e5..19a1de7fd 100644 --- a/test/language/expressions/delete/11.4.1-2-1.js +++ b/test/language/expressions/delete/11.4.1-2-1.js @@ -4,13 +4,8 @@ /*--- es5id: 11.4.1-2-1 description: delete operator returns true when deleting a non-reference (number) -includes: [runTestCase.js] ---*/ -function testcase() { var d = delete 42; - if (d === true) { - return true; - } - } -runTestCase(testcase); + +assert.sameValue(d, true, 'd'); diff --git a/test/language/expressions/delete/11.4.1-4.a-17.js b/test/language/expressions/delete/11.4.1-4.a-17.js index b9a86cd8b..6d441422e 100644 --- a/test/language/expressions/delete/11.4.1-4.a-17.js +++ b/test/language/expressions/delete/11.4.1-4.a-17.js @@ -7,17 +7,12 @@ info: > language provides no way to directly exercise [[Delete]], the tests are placed here. es5id: 11.4.1-4.a-17 description: delete operator returns true on deleting a arguments element -includes: [runTestCase.js] ---*/ -function testcase() { function foo(a,b) { var d = delete arguments[0]; return (d === true && arguments[0] === undefined); } - if(foo(1,2) === true) - return true; - } -runTestCase(testcase); +assert.sameValue(foo(1,2), true, 'foo(1,2)'); diff --git a/test/language/expressions/unary-minus/11.4.7-4-1.js b/test/language/expressions/unary-minus/11.4.7-4-1.js index 170df2eeb..3c4f84373 100644 --- a/test/language/expressions/unary-minus/11.4.7-4-1.js +++ b/test/language/expressions/unary-minus/11.4.7-4-1.js @@ -4,10 +4,6 @@ /*--- es5id: 11.4.7-4-1 description: -"" should be zero -includes: [runTestCase.js] ---*/ -function testcase() { - return -"" === 0; - } -runTestCase(testcase); +assert.sameValue(-"", -0, '-""'); diff --git a/test/language/expressions/unary-plus/11.4.6-2-1.js b/test/language/expressions/unary-plus/11.4.6-2-1.js index da6da3c7a..d5ca55aea 100644 --- a/test/language/expressions/unary-plus/11.4.6-2-1.js +++ b/test/language/expressions/unary-plus/11.4.6-2-1.js @@ -4,10 +4,6 @@ /*--- es5id: 11.4.6-2-1 description: +"" should be zero -includes: [runTestCase.js] ---*/ -function testcase() { - return +"" === 0; - } -runTestCase(testcase); +assert.sameValue(+"", 0, '+""'); |