DescriptionWait until the test page is fully loaded before dumping the contents.
Context - how timing of text/pixel dumps works.
===============================================
Text dump or pixel dump are taken
1) immediately when testRunner.notifyDone is called
or
2) when test page finishes loading (i.e. if TestRunner::topLoadingFrame
was not-null when testRunner.notifyDone was called and we didn't take
path (1) above - see how TestRunner::CompleteNotifyDone calls TestFinished
only if !topLoadingFrame()).
Context - OOPIFs support requires changes to topLoadingFrame tracking
=====================================================================
Some planned refactorings change how TestRunner::topLoadingFrame works
(to make sure there is only 1 top loading frame across all renderer
processes). This can affect the timing of text/pixel dumps.
Changes in this CL
==================
So - to avoid timing problems described above, this CL makes sure
the tests are explicitly timing their text/pixel dumps.
BUG=595089
Committed: https://crrev.com/5cf0f0ca0e0478113e2df9814266e6291ccea925
Cr-Commit-Position: refs/heads/master@{#389670}
Patch Set 1 #
Total comments: 2
Patch Set 2 : testRunner.notifyDone from img's load event (not after testRunner.layoutAndPaintAsyncThen). #Patch Set 3 : Tweaking a comment. #
Messages
Total messages: 10 (3 generated)
|