diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-08-06 18:34:15 +0200 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-08-06 18:34:15 +0200 |
commit | f939067d0e3926f8d2cb7d7199ce31d1a6bf4edc (patch) | |
tree | 80186a447ef0357af13f5720da9a1e9e4f844400 | |
parent | 4c582732d03114ac7baad0f3f00282bbc17d96da (diff) | |
download | qtdeclarative-testsuites-f939067d0e3926f8d2cb7d7199ce31d1a6bf4edc.tar.gz |
Replace runTestCase with assert helpers [test/language/future-reserved-words]
6 files changed, 12 insertions, 30 deletions
diff --git a/test/language/future-reserved-words/7.6.1.2-10-s.js b/test/language/future-reserved-words/7.6.1.2-10-s.js index 00d4faea4..4d10b8890 100644 --- a/test/language/future-reserved-words/7.6.1.2-10-s.js +++ b/test/language/future-reserved-words/7.6.1.2-10-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-10-s description: > SyntaxError isn't thrown when 'IMPLEMENTS' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var IMPLEMENTS = 1;
- return IMPLEMENTS === 1;
- }
-runTestCase(testcase); + +assert.sameValue(IMPLEMENTS, 1, 'IMPLEMENTS'); diff --git a/test/language/future-reserved-words/7.6.1.2-11-s.js b/test/language/future-reserved-words/7.6.1.2-11-s.js index 14911e837..8dfcf574e 100644 --- a/test/language/future-reserved-words/7.6.1.2-11-s.js +++ b/test/language/future-reserved-words/7.6.1.2-11-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-11-s description: > SyntaxError isn't thrown when 'Implements' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var Implements = 1;
- return Implements === 1;
- }
-runTestCase(testcase); + +assert.sameValue(Implements, 1, 'Implements'); diff --git a/test/language/future-reserved-words/7.6.1.2-12-s.js b/test/language/future-reserved-words/7.6.1.2-12-s.js index dfdb2d6dc..1524b197b 100644 --- a/test/language/future-reserved-words/7.6.1.2-12-s.js +++ b/test/language/future-reserved-words/7.6.1.2-12-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-12-s description: > SyntaxError isn't thrown when 'implement' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var implement = 1;
- return implement === 1;
- }
-runTestCase(testcase); + +assert.sameValue(implement, 1, 'implement'); diff --git a/test/language/future-reserved-words/7.6.1.2-13-s.js b/test/language/future-reserved-words/7.6.1.2-13-s.js index c432fe281..6663859a1 100644 --- a/test/language/future-reserved-words/7.6.1.2-13-s.js +++ b/test/language/future-reserved-words/7.6.1.2-13-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-13-s description: > SyntaxError isn't thrown when 'implementss' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var implementss = 1;
- return implementss === 1;
- }
-runTestCase(testcase); + +assert.sameValue(implementss, 1, 'implementss'); diff --git a/test/language/future-reserved-words/7.6.1.2-14-s.js b/test/language/future-reserved-words/7.6.1.2-14-s.js index b34ced0be..725aeacb6 100644 --- a/test/language/future-reserved-words/7.6.1.2-14-s.js +++ b/test/language/future-reserved-words/7.6.1.2-14-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-14-s description: > SyntaxError isn't thrown when 'implements0' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var implements0 = 1;
- return implements0 === 1;
- }
-runTestCase(testcase); + +assert.sameValue(implements0, 1, 'implements0'); diff --git a/test/language/future-reserved-words/7.6.1.2-16-s.js b/test/language/future-reserved-words/7.6.1.2-16-s.js index 033290bd6..284fd5dca 100644 --- a/test/language/future-reserved-words/7.6.1.2-16-s.js +++ b/test/language/future-reserved-words/7.6.1.2-16-s.js @@ -5,11 +5,8 @@ es5id: 7.6.1.2-16-s description: > SyntaxError isn't thrown when '_implements' occurs -includes: [runTestCase.js] ---*/ -function testcase() {
var _implements = 1;
- return _implements === 1;
- }
-runTestCase(testcase); + +assert.sameValue(_implements, 1, '_implements'); |