Commit e2539b2c authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Add explicit lifecycle update for tests.

These tests rely on the forced lifecycle update after parsing finished,
which we would like to get rid of.

Bug: 742413
Change-Id: I2f1bb6f4efedd6bf48f903d48fc26344a60148ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1624330Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662136}
parent ce0bca27
......@@ -42,6 +42,7 @@ class LazyLoadImagesSimTest : public SimTest {
<div style='height:10000px;'></div>
<div id="deferred_image"></div>
)HTML"));
GetDocument().UpdateStyleAndLayoutTree();
}
void ExpectCSSBackgroundImageDeferredState(bool deferred) {
......
......@@ -1538,6 +1538,8 @@ TEST_F(EventHandlerSimTest, LargeCustomCursorIntersectsViewport) {
<div>foo</div>
)HTML");
GetDocument().UpdateStyleAndLayoutTree();
scoped_refptr<SharedBuffer> img =
test::ReadFromFile(test::CoreTestDataPath("notifications/100x100.png"));
cursor_request.Complete(img->CopyAs<Vector<char>>());
......@@ -1595,6 +1597,8 @@ TEST_F(EventHandlerSimTest, SmallCustomCursorIntersectsViewport) {
<div>foo</div>
)HTML");
GetDocument().UpdateStyleAndLayoutTree();
scoped_refptr<SharedBuffer> img =
test::ReadFromFile(test::CoreTestDataPath("notifications/48x48.png"));
cursor_request.Complete(img->CopyAs<Vector<char>>());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment