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

RunPendingTasks required after stylesheet load.

When BlockHTMLParserOnStyleSheets is enabled, two of the lazy image
loading tests requires RunPendingTasks to finish parsing after the
stylesheet loading is completed.

Bug: 891767
Change-Id: I82acfe201b1988a6f10e5793868073b63708aad2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011805Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733763}
parent fa531906
......@@ -544,6 +544,7 @@ TEST_P(LazyLoadImagesParamsTest, NearViewport) {
kViewportHeight + GetLoadingDistanceThreshold() - 100));
css_resource.Complete("img { width: 50px; height: 50px; }");
test::RunPendingTasks();
Vector<char> full_image = ReadTestImage();
ASSERT_LT(2048U, full_image.size());
......@@ -677,6 +678,7 @@ TEST_P(LazyLoadImagesParamsTest, FarFromViewport) {
kViewportHeight + GetLoadingDistanceThreshold() + 100));
css_resource.Complete("img { width: 50px; height: 50px; }");
test::RunPendingTasks();
Compositor().BeginFrame();
test::RunPendingTasks();
......
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