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

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

Issue 2327223002: Move all remaining fast/repaint tests 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 <style>targetImage::first-line { color: yellow; }</style> 2 <style>targetImage::first-line { color: yellow; }</style>
3 <div style="height: 2000px; width: 2000px;"> 3 <div style="height: 2000px; width: 2000px;">
4 <div id="targetImage" style="width: 50px; height: 50px">text text</div> 4 <div id="targetImage" style="width: 50px; height: 50px">text text</div>
5 <img id="testTarget" style="visibility: hidden"> 5 <img id="testTarget" style="visibility: hidden">
6 </div> 6 </div>
7 7
8 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 8 <script src="resources/text-based-repaint.js"></script>
9 <script> 9 <script>
10 window.testIsAsync = true; 10 window.testIsAsync = true;
11 11
12 // Disable under-invalidation checking because the "under-invalidation" of 12 // Disable under-invalidation checking because the "under-invalidation" of
13 // offscreen gif animation is intentional. 13 // offscreen gif animation is intentional.
14 if (window.internals) 14 if (window.internals)
15 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; 15 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false;
16 16
17 function repaintTest() { 17 function repaintTest() {
18 if (window.internals) 18 if (window.internals)
(...skipping 11 matching lines...) Expand all
30 30
31 onload = function() { 31 onload = function() {
32 targetImage.style.background = "url(../../fast/backgrounds/resources/red-gre en-animated.gif)"; 32 targetImage.style.background = "url(../../fast/backgrounds/resources/red-gre en-animated.gif)";
33 33
34 // Use a parallel image element as a hack to detect whether the image has lo aded, and therefore 34 // Use a parallel image element as a hack to detect whether the image has lo aded, and therefore
35 // we'll get a frame. 35 // we'll get a frame.
36 testTarget.onload = targetImageOnload; 36 testTarget.onload = targetImageOnload;
37 testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif"; 37 testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif";
38 } 38 }
39 </script> 39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698