mirror of https://github.com/tc39/test262.git
Replace runTestCase with assert helpers [test/language/future-reserved-words]
This commit is contained in:
parent
4c582732d0
commit
f939067d0e
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue