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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/nested-fixed-iframe-scrolled.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'gr een'; 5 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'gr een';
6 } 6 }
7 onload = function() { 7 onload = function() {
8 // Scroll before repaint test to test correct scroll offset of invalidation re ct 8 // Scroll before repaint test to test correct scroll offset of invalidation re ct
9 // for contents of the fixed-position inner-iframe when it needs repaint. 9 // for contents of the fixed-position inner-iframe when it needs repaint.
10 window.scrollTo(0, 400); 10 window.scrollTo(0, 400);
11 if (window.testRunner) 11 if (window.testRunner)
12 runRepaintAndPixelTest(); 12 runRepaintAndPixelTest();
13 // For manual testing, the background color change is triggered in the iframe content. 13 // For manual testing, the background color change is triggered in the iframe content.
14 }; 14 };
15 </script> 15 </script>
16 <body style="height: 2000px"> 16 <body style="height: 2000px">
17 Tests paint invalidation of contents of fixed-position iframe in another ifram e after main frame is scrolled. 17 Tests paint invalidation of contents of fixed-position iframe in another ifram e after main frame is scrolled.
18 Passes if there is a 100x100 green rectangle and no red in the inner-most ifra me. 18 Passes if there is a 100x100 green rectangle and no red in the inner-most ifra me.
19 <iframe style="position: absolute; top: 500px; left: 0" src="resources/fixed-i frame.html"></iframe> 19 <iframe style="position: absolute; top: 500px; left: 0" src="resources/fixed-i frame.html"></iframe>
20 </body> 20 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698