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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/fixed-img-src-change-after-scroll.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) 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 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 window.scrollTo(0, 1000); 5 window.scrollTo(0, 1000);
6 document.getElementById('img').src = '../../fast/images/resources/green.jpg'; 6 document.getElementById('img').src = '../../images/resources/green.jpg';
7 } 7 }
8 onload = runRepaintAndPixelTest; 8 onload = runRepaintAndPixelTest;
9 </script> 9 </script>
10 <body style="height: 2000px"> 10 <body style="height: 2000px">
11 Checks correct paint invalidation on image src change after a pending scroll. 11 Checks correct paint invalidation on image src change after a pending scroll.
12 Passes if there is no assert failure about pending scroll offsets in a debug bui ld 12 Passes if there is no assert failure about pending scroll offsets in a debug bui ld
13 (http://crbug.com/434950), and both the old location and new location of the img are 13 (http://crbug.com/434950), and both the old location and new location of the img are
14 correctly invalidated. 14 correctly invalidated.
15 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0"> 15 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
16 </body> 16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698