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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/transform-repaint-descendants.html

Issue 1972273002: Let repaint tests test pixels by default (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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Transform Repaint Descendants</title> 4 <title>Transform Repaint Descendants</title>
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 <style type="text/css"> 6 <style type="text/css">
7 #box { 7 #box {
8 position:relative; 8 position:relative;
9 top: 100px; 9 top: 100px;
10 left: 100px; 10 left: 100px;
11 height: 200px; 11 height: 200px;
12 width: 200px; 12 width: 200px;
13 background-color: #CCC; 13 background-color: #CCC;
14 border: 1px solid black; 14 border: 1px solid black;
15 } 15 }
16 16
17 #box > div { 17 #box > div {
18 position: absolute; 18 position: absolute;
19 height: 50px; 19 height: 50px;
20 width: 400px; 20 width: 400px;
21 top: 75px; 21 top: 75px;
22 left: 75px; 22 left: 75px;
23 background-color: #555; 23 background-color: #555;
24 } 24 }
25 </style> 25 </style>
26 <script src="resources/text-based-repaint.js" type="text/javascript" charset=" utf-8"></script> 26 <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></sc ript>
27 <script type="text/javascript" charset="utf-8"> 27 <script type="text/javascript" charset="utf-8">
28 var gAngle = 20; 28 var gAngle = 20;
29 function incrementAngle() 29 function incrementAngle()
30 { 30 {
31 document.getElementById('box').style.webkitTransform = 'rotate(' + gAngle + 'deg)'; 31 document.getElementById('box').style.webkitTransform = 'rotate(' + gAngle + 'deg)';
32 gAngle += 3; 32 gAngle += 3;
33 } 33 }
34 34
35 function repaintTest() 35 function repaintTest()
36 { 36 {
37 incrementAngle(); 37 incrementAngle();
38 } 38 }
39 39
40 function startTest() 40 function startTest()
41 { 41 {
42 incrementAngle(); 42 incrementAngle();
43 runRepaintTest(); 43 runRepaintTest();
44 } 44 }
45 </script> 45 </script>
46 </head> 46 </head>
47 <body onload="startTest()"> 47 <body onload="startTest()">
48 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22088">https://bu gs.webkit.org/show_bug.cgi?id=22088</a>. The rotated box should be correctly red rawn.</p> 48 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22088">https://bu gs.webkit.org/show_bug.cgi?id=22088</a>. The rotated box should be correctly red rawn.</p>
49 <div id="box"><div></div></div> 49 <div id="box"><div></div></div>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698