mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Improve the stability of tests run using WebDriver.
* Wait for the correct pipeline to return a LoadComplete message before signalling a load is complete, and ensure that the root pipeline is the one corresponding to the active document of the top level browsing context, even if this has not yet painted. * Ensure that TakeScreenshot operates on the correct pipeline * Reset the screenshot ready flag whenever we decide that we are ready to take a screenshot.
This commit is contained in:
parent
ec79881471
commit
aa0f7a7a12
4 changed files with 42 additions and 12 deletions
|
@ -1281,6 +1281,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
// Constellation has replied at some point in the past
|
||||
// that the current output image is stable and ready
|
||||
// for saving.
|
||||
// Reset the flag so that we check again in the future
|
||||
// TODO: only reset this if we load a new document?
|
||||
self.ready_to_save_state = ReadyState::Unknown;
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue