blob: 75dccbe2b26d8bfe0aa2168e8a0dba658f97c399 [file] [log] [blame]
Runs 3 separate 1 second <script> blocks with a setTimeout schedule before each. The execution time of the setTimeout is when the HTML yielded to the event loop. The yields also represent painting opportunities. We want the parser to yield every 0.5 seconds once it has seen a script.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new Date().getTime() - startTime is within 400 of 1000
PASS new Date().getTime() - startTime is within 400 of 2000
PASS new Date().getTime() - startTime is within 400 of 3000
PASS successfullyParsed is true
TEST COMPLETE