Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html

Issue 2464253002: Fix flaky test paint/invalidation/background-resize-height.html (Closed)
Patch Set: Remove extra files (should belong to another CL) Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html b/third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html
index 88f87468ce3b7edf6502f5398fc982613794462b..01cb4e57fad795b14d1f447394c12f8f1faa0334 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/background-resize-height.html
@@ -1,9 +1,19 @@
<!DOCTYPE html>
<script src="resources/text-based-repaint.js" type="text/javascript"></script>
<script>
+window.testIsAsync = true;
+function doTest() {
+ document.getElementById('container').style.height = '550px';
+ finishRepaintTest();
+}
function repaintTest()
{
- document.getElementById('container').style.height = '550px';
+ if (window.testRunner) {
+ // This ensures finish of image decoding before running the test.
+ testRunner.capturePixelsAsyncThen(doTest);
+ } else {
+ doTest();
+ }
}
window.onload = runRepaintAndPixelTest;
</script>
@@ -52,7 +62,7 @@ window.onload = runRepaintAndPixelTest;
left: 300px;
}
.center {
- background-position: center;
+ background-position: center;
left: 350px;
}
.no-repeat {
@@ -81,9 +91,8 @@ window.onload = runRepaintAndPixelTest;
<div class="test image repeat-space"></div>
<div class="test image repeat-round"></div>
<div class="test generated"></div>
- <div class="test generated cover"></div>
- <div class="test generated contain"></div>
- <div class="test generated fixed-height"></div>
+ <div class="test generated size-cover"></div>
+ <div class="test generated size-contain"></div>
<div class="test generated percent-height"></div>
<div class="test generated top"></div>
<div class="test generated bottom"></div>

Powered by Google App Engine
This is Rietveld 408576698