New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added test262 tests #312
Added test262 tests #312
Conversation
CI has failed. Also, for each excluded test, can you link to the appropriate issue (and create it if it does not yet exist)? |
e77862f
to
8a7d74a
Compare
suite('early', function() { | ||
var earlyExcludes = ['56.script.js', '88.script.js', '90.script.js', '190.script.js' ,'205.script.js','557.script.js', '558.script.js', '559.script.js', '560.script.js', '561.script.js', '563.script.js', '564.script.js', '565.script.js', '566.script.js', '567.script.js', '568.script.js', '569.script.js', '570.script.js', '571.script.js', '572.script.js', '574.script.js', '575.script.js', '576.script.js', '577.script.js', '578.script.js', '579.script.js', '580.script.js', '581.script.js', '582.script.js', '583.script.js', '585.script.js', '586.script.js', '587.script.js', '588.script.js', '589.script.js', '590.script.js', '591.script.js', '592.script.js', '593.script.js', '594.script.js', '596.script.js', '597.script.js', '598.script.js', '599.script.js', '600.script.js', '601.script.js', '602.script.js', '641.script.js', '642.script.js']; | ||
|
||
fs.readdirSync(scriptDir + '/early').filter(function(item) { return earlyExcludes.indexOf(item) === -1 }).forEach(function(f) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
5fa0c51
to
a6f9cd6
Compare
let scriptDir = 'node_modules/test262-parser-tests'; | ||
|
||
function parse(src, isModule, earlyErrors) { | ||
(isModule ? parseModule : parseScript)(src, { earlyErrors: earlyErrors }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ earlyErrors }
|
||
suite('test262', function () { | ||
suite('pass and pass-explicit', function () { | ||
let passExcludes = ['995.script.js', // https://github.com/shapesecurity/shift-parser-js/issues/311 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline after [
.
suite('pass and pass-explicit', function () { | ||
let passExcludes = ['995.script.js', // https://github.com/shapesecurity/shift-parser-js/issues/311 | ||
'970.script.js', // This is an invalid test | ||
'1012.script.js']; // https://github.com/shapesecurity/shift-parser-js/issues/311 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline before ]
.
expect(function parsePass() { | ||
passTree = parse( | ||
fs.readFileSync(scriptDir + '/pass/' + f, 'utf8'), | ||
f.match('.module.js'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation. Please not like this. 2 space indentation, always. All arguments should be at the same level.
'589.script.js', '590.script.js', '591.script.js', '592.script.js', '593.script.js', | ||
// https://github.com/shapesecurity/shift-parser-js/issues/307 | ||
'594.script.js', '596.script.js', '597.script.js', '598.script.js', | ||
'599.script.js', '600.script.js', '601.script.js', '602.script.js']; // causes Syntax Errors in the test script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To which script is this comment referring? Please place it more appropriately. And of course, newline before ]
.
54c77e5
to
883f81f
Compare
883f81f
to
794afdc
Compare
Excluded failed tests
1533b2e
to
f4ec725
Compare
f4ec725
to
3b9aa13
Compare
Excluded failed Tests. Relates to #311 #313 #314