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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/absolute-position-moved.html

Issue 1994373002: Convert some repaint tests into ref tests (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 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/default.css"> 3 <link rel="stylesheet" href="resources/default.css">
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsTextWithPixelResults(); 7 testRunner.dumpAsTextWithPixelResults();
8 function repaintTest() 8 function repaintTest()
9 { 9 {
10 var absoluteDiv = document.getElementById('absoluteDiv'); 10 var absoluteDiv = document.getElementById('absoluteDiv');
11 absoluteDiv.parentNode.removeChild(absoluteDiv); 11 absoluteDiv.parentNode.removeChild(absoluteDiv);
12 document.body.appendChild(absoluteDiv); 12 document.body.appendChild(absoluteDiv);
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body style="height:2000px;" onload="runRepaintTest()"> 16 <body style="height:2000px;" onload="runRepaintAndPixelTest()">
17 <!-- You should see 1 green rectangle in the output and no red. --> 17 <!-- You should see 1 green rectangle in the output and no red. -->
18 <div style="top: 5000px;" class="fixed red"><div id="absoluteDiv" style="top :100px; left:100px;" class="absolute green"></div></div> 18 <div style="top: 5000px;" class="fixed red"><div id="absoluteDiv" style="top :100px; left:100px;" class="absolute green"></div></div>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698