Skip to content
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

Merged
merged 2 commits into from Jan 17, 2017
Merged

Conversation

Shilpi3
Copy link
Contributor

@Shilpi3 Shilpi3 commented Jan 6, 2017

Excluded failed Tests. Relates to #311 #313 #314

@michaelficarra
Copy link
Member

CI has failed. Also, for each excluded test, can you link to the appropriate issue (and create it if it does not yet exist)?

@Shilpi3 Shilpi3 force-pushed the add-test262-tests branch 4 times, most recently from e77862f to 8a7d74a Compare January 9, 2017 23:56
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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.

@Shilpi3 Shilpi3 force-pushed the add-test262-tests branch 2 times, most recently from 5fa0c51 to a6f9cd6 Compare January 13, 2017 16:55
let scriptDir = 'node_modules/test262-parser-tests';

function parse(src, isModule, earlyErrors) {
(isModule ? parseModule : parseScript)(src, { earlyErrors: earlyErrors });
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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'),
Copy link
Member

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
Copy link
Member

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 ].

@Shilpi3 Shilpi3 force-pushed the add-test262-tests branch 2 times, most recently from 54c77e5 to 883f81f Compare January 13, 2017 17:29
Excluded failed tests
@Shilpi3 Shilpi3 force-pushed the add-test262-tests branch 3 times, most recently from 1533b2e to f4ec725 Compare January 17, 2017 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants