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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html

Issue 2733773004: Add check for missing visual rect updates and fix failures (Closed)
Patch Set: - Created 3 years, 9 months 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/resize-iframe-text.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html b/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
index 2f5e1a22498d4d71cd2fe877e86de5e43e4d6ae1..11fbdea8b92bd0c98bf34aca7d5fb153d2507d2f 100644
--- a/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
@@ -1,12 +1,21 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
<script src="resources/text-based-repaint.js"></script>
<script>
+if (window.testRunner)
+ testRunner.useUnfortunateSynchronousResizeMode();
+onload = function() {
+ runAfterLayoutAndPaint(function() {
+ // Use smaller size because window.resizeTo/By() will fail if the sizae is
+ // bigger than the screen size.
+ window.resizeTo(500, 200);
+ runRepaintAndPixelTest();
+ });
+};
function repaintTest() {
- if (window.testRunner)
- testRunner.useUnfortunateSynchronousResizeMode();
window.resizeBy(0, 200);
}
-onload = runRepaintAndPixelTest;
</script>
Test passes if you see "Success" after window resizes.
-<iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;" src="resources/resize-iframe-text-src.html"></iframe>
+<iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;"
+ srcdoc="<!DOCTYPE html><div style='margin-top: 300px; max-width: 400px'><h3>Success</h3></div>"></iframe>

Powered by Google App Engine
This is Rietveld 408576698