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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/repaint-during-scroll.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 <head> 1 <head>
2 <script> 2 <script>
3 function runTest() 3 function runTest()
4 { 4 {
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsTextWithPixelResults(); 6 testRunner.dumpAsTextWithPixelResults();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 scrollBy(0, 100); 9 scrollBy(0, 100);
10 } 10 }
11 11
12 function handleScroll() 12 function handleScroll()
13 { 13 {
14 var target = document.getElementById("target"); 14 var target = document.getElementById("target");
15 target.style.backgroundColor = "green"; 15 target.style.backgroundColor = "green";
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="runTest()" onscroll="handleScroll()" style="height: 200%;"> 21 <body onload="runTest()" onscroll="handleScroll()" style="height: 200%;">
22 <div id="target" style="position: absolute; top: 300px; left: 300px; backgro und-color: red; width: 100px; height: 100px;"></div> 22 <div id="target" style="position: absolute; top: 300px; left: 300px; backgro und-color: red; width: 100px; height: 100px;"></div>
23 </body> 23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698