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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/text-based-repaint.js"></script>
3 <script> 4 <script>
5 if (window.testRunner)
6 testRunner.useUnfortunateSynchronousResizeMode();
7 onload = function() {
8 runAfterLayoutAndPaint(function() {
9 // Use smaller size because window.resizeTo/By() will fail if the sizae is
10 // bigger than the screen size.
11 window.resizeTo(500, 200);
12 runRepaintAndPixelTest();
13 });
14 };
4 function repaintTest() { 15 function repaintTest() {
5 if (window.testRunner)
6 testRunner.useUnfortunateSynchronousResizeMode();
7 window.resizeBy(0, 200); 16 window.resizeBy(0, 200);
8 } 17 }
9 onload = runRepaintAndPixelTest;
10 </script> 18 </script>
11 Test passes if you see "Success" after window resizes. 19 Test passes if you see "Success" after window resizes.
12 <iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;" src="resources/resize-iframe-text-src.html"></iframe> 20 <iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;"
21 srcdoc="<!DOCTYPE html><div style='margin-top: 300px; max-width: 400px'><h3> Success</h3></div>"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698