Replace runTestCase with assert helpers [test/language/future-reserved-words]

This commit is contained in:
André Bargull 2015-08-06 18:34:15 +02:00
parent 4c582732d0
commit f939067d0e
6 changed files with 12 additions and 30 deletions

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');