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

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

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/images/fixed-img-src-change-after-scroll.html --> 1 <!-- Based on fast/images/fixed-img-src-change-after-scroll.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutImage (positioned) IMG id='img'",
7 ];
8 function paintInvalidationTest() { 5 function paintInvalidationTest() {
9 window.scrollTo(0, 1000); 6 window.scrollTo(0, 1000);
10 document.getElementById('img').src = '../../../fast/images/resources/green.jpg '; 7 document.getElementById('img').src = '../../../fast/images/resources/green.jpg ';
11 } 8 }
12 onload = runPaintInvalidationTest; 9 onload = runPaintInvalidationTest;
13 </script> 10 </script>
14 <body style="height: 2000px"> 11 <body style="height: 2000px">
15 Checks correct paint invalidation on image src change after a pending scroll. 12 Checks correct paint invalidation on image src change after a pending scroll.
16 Passes if there is no assert failure about pending scroll offsets in a debug bui ld 13 Passes if there is no assert failure about pending scroll offsets in a debug bui ld
17 (http://crbug.com/434950), and both the old location and new location of the img are 14 (http://crbug.com/434950), and both the old location and new location of the img are
18 correctly invalidated. 15 correctly invalidated.
19 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0"> 16 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
20 </body> 17 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698