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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/repaint-on-style-change.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 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test for repaint on style change</title> 4 <title>Test for repaint on style change</title>
5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
6 <script> 6 <script>
7 function repaintTest() 7 function repaintTest()
8 { 8 {
9 if (!window.testRunner) 9 if (!window.testRunner)
10 return; 10 return;
11 document.getElementById('box').style['background-color'] = 'green'; 11 document.getElementById('box').style['background-color'] = 'green';
12 } 12 }
13 </script> 13 </script>
14 <style> 14 <style>
15 div { 15 div {
16 background-color: magenta; 16 background-color: magenta;
17 height: 100px; 17 height: 100px;
18 width: 100px; 18 width: 100px;
19 19
20 position: absolute; 20 position: absolute;
21 top: 260px; 21 top: 260px;
22 left: 260px; 22 left: 260px;
23 } 23 }
24 </style> 24 </style>
25 </head> 25 </head>
26 <body onload="runRepaintTest()"> 26 <body onload="runRepaintAndPixelTest()">
27 <div id='box'> </div> 27 <div id='box'> </div>
28 </body> 28 </body>
29 </html> 29 </html>
30 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698