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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/animated-gif-transformed-offscreen.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <body> 2 <body>
3 <div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform "> 3 <div id="targetDiv" style="height: 2000px; width: 2000px; will-change: transform ">
4 <img id="targetImage"> 4 <img id="targetImage">
5 </div> 5 </div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/repaint.js"></script>
7 <script> 7 <script>
8 window.testIsAsync = true; 8 window.testIsAsync = true;
9 9
10 // The image should not show a paint invalidation if offscreen if Slimming Paint is on. 10 // The image should not show a paint invalidation if offscreen if Slimming Paint is on.
11 // Otherwise it should. 11 // Otherwise it should.
12 12
13 // Steps: 13 // Steps:
14 // 1. Load the image 14 // 1. Load the image
15 // 2. Move the image offscreen 15 // 2. Move the image offscreen
16 // 3. Start tracking paint invalidation rects 16 // 3. Start tracking paint invalidation rects
(...skipping 16 matching lines...) Expand all
33 if (window.internals) 33 if (window.internals)
34 window.internals.startTrackingRepaints(document); 34 window.internals.startTrackingRepaints(document);
35 runRepaintTest(); 35 runRepaintTest();
36 } 36 }
37 37
38 window.onload = function() { 38 window.onload = function() {
39 targetImage.onload = targetImageOnload; 39 targetImage.onload = targetImageOnload;
40 targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif"; 40 targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif";
41 } 41 }
42 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698