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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/positioned-document-element.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 html { 6 html {
7 background-color: red; 7 background-color: red;
8 } 8 }
9 html.changed { 9 html.changed {
10 position: absolute; 10 position: absolute;
11 top: 100px; 11 top: 100px;
12 left: 100px; 12 left: 100px;
13 background-color: green; 13 background-color: green;
14 } 14 }
15 </style> 15 </style>
16 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 16 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 function repaintTest() 18 function repaintTest()
19 { 19 {
20 document.documentElement.className = 'changed'; 20 document.documentElement.className = 'changed';
21 } 21 }
22 </script> 22 </script>
23 </head> 23 </head>
24 <body onload="runRepaintTest()"> 24 <body onload="runRepaintAndPixelTest()">
25 <p>Tests that the entire viewport is painted with a floated html element.</p> 25 <p>Tests that the entire viewport is painted with a floated html element.</p>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698