-
Notifications
You must be signed in to change notification settings - Fork 668
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
Fix async portions of PLS test. #3562
Conversation
Await the results of asynchronous functions, and explicitly call finishTest() at the end of runTest(). Follow-on to KhronosGroup#3530 .
@csmartdalton please feel free to review too. |
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.
Thank you for putting this together Ken!
await checkRendering(gl); | ||
await checkRendering(gl_no_alpha); | ||
|
||
finishTest(); |
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.
Just for my own understanding, how does the test harness know that the test is async now and that it should wait for finishTest
? Before was it assuming the test was over as soon as it finished parsing?
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.
js-test-post.js
notifies the test harness explicitly. When included statically, it's called as soon as the parsing is finished. With finishTest
, the same script is added on the fly.
@kenrussell Please add another |
Timeouts were accidentally introduced in the last commit by failing to do this. Follow-on to KhronosGroup#3562 and KhronosGroup#3530.
Thanks for catching that. Fixing in #3563 . |
* Call finishTest() when PLS isn't supported. Timeouts were accidentally introduced in the last commit by failing to do this. Follow-on to #3562 and #3530. Fixed bugs caught by @lexaknyazev in code review.
Await the results of asynchronous functions, and explicitly call finishTest() at the end of runTest().
Follow-on to #3530 .