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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/create-layer-repaint.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, 6 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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html> 3 <html>
4 <head> 4 <head>
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>CSS Transition test case</title> 6 <title>CSS Transition test case</title>
7 <style type="text/css" media="screen"> 7 <style type="text/css" media="screen">
8 .stretchy { 8 .stretchy {
9 background: green; 9 background: green;
10 opacity: 0.5; 10 opacity: 0.5;
11 height: 50px; 11 height: 50px;
12 width: 250px; 12 width: 250px;
13 margin: 20px; 13 margin: 20px;
14 } 14 }
15 15
16 .stretchy.big { 16 .stretchy.big {
17 background: red; 17 background: red;
18 opacity: 1; 18 opacity: 1;
19 width: 500px; 19 width: 500px;
20 } 20 }
21 </style> 21 </style>
22 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 22 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
23 <script> 23 <script>
24 function repaintTest() 24 function repaintTest()
25 { 25 {
26 document.getElementById('test').className = 'stretchy'; 26 document.getElementById('test').className = 'stretchy';
27 } 27 }
28 </script> 28 </script>
29 </head> 29 </head>
30 <body onload="runRepaintTest()"> 30 <body onload="runRepaintAndPixelTest()">
31 <p>If you see red, the test failed</p> 31 <p>If you see red, the test failed</p>
32 <div id="test" class="big stretchy"></div> 32 <div id="test" class="big stretchy"></div>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698