blob: 948da42452ba3d5e5f04e49bee5e8233d10623d7 [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 300 of 1000
PASS new Date().getTime() - startTime is within 300 of 2000
PASS new Date().getTime() - startTime is within 300 of 3000
PASS successfullyParsed is true
TEST COMPLETE