Skip to content

Conversation

@patrto
Copy link
Contributor

@patrto patrto commented Mar 14, 2018

GLSLConformanceTester.runTests() uses setTimeout(.., 1) in between tests, making the tests asynchronous. runOneTest(), the function called in the setTimeout callback, doesn't do intensive work that takes a long time, and it does a checkCanvas at the end of the function that would reset the harness timeout timer. Changing this to a synchronous for loop instead.

This PR is a followup from #2608

@patrto
Copy link
Contributor Author

patrto commented Mar 14, 2018

@zhenyao, please review when you get a chance

@zhenyao
Copy link
Contributor

zhenyao commented Mar 14, 2018

LGTM
Thank you!

@zhenyao zhenyao merged commit a29b472 into KhronosGroup:master Mar 14, 2018
@kenrussell
Copy link
Member

For what it's worth, I think this was made asynchronous to allow the web browser to update its output while these potentially long-running tests were running. But as long as the tests continue to work reasonably well in all harnesses, simplifying it sounds good. Sorry for the long delay in commenting on this.

kenrussell added a commit to kenrussell/WebGL that referenced this pull request Jul 27, 2020
kenrussell added a commit that referenced this pull request Jul 27, 2020
Backport fixes from #2330 and #2612 to the 2.0.0 snapshot.
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.

3 participants