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

Reset counters so that the test can be run again for camresolutiontest.js #144

Merged
merged 2 commits into from
Oct 13, 2014

Conversation

KaptenJansson
Copy link
Contributor

If the test is a run a second time it reuses the counters from the previous run effectively going out of bounds.

@KaptenJansson
Copy link
Contributor Author

fixed #145

@@ -88,6 +88,9 @@ CamResolutionsTest.finishTestOrRetrigger = function() {
' is not accessible or dead.');
}
}
CamResolutionsTest.index = 0;
CamResolutionsTest.supported = 0;
CamResolutionsTest.unsupported = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

It makes more logic to initialize the variables at test start than to reset them at test end for the next run.

Can you move this to the test start? (i.e. CamResolutionsTest.camResolutionsTest)
Also once you have done so, you can remove the initialization on the main scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ofc, how silly of me, done!

andresusanopinto added a commit that referenced this pull request Oct 13, 2014
Reset counters so that the test can be run again for camresolutiontest.js. Fixes #145.
@andresusanopinto andresusanopinto merged commit d1e6e68 into master Oct 13, 2014
@KaptenJansson KaptenJansson deleted the resetIndex branch October 13, 2014 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants