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

Side by Side Diff: LayoutTests/compositing/child-layer-3d-sorting.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Child layer 3d sorting</title> 4 <title>Child layer 3d sorting</title>
5 5
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 #parent { 7 #parent {
8 -webkit-transform-style: preserve-3d; 8 -webkit-transform-style: preserve-3d;
9 -webkit-transform: translateZ(0); 9 -webkit-transform: translateZ(0);
10 } 10 }
11 #child { 11 #child {
12 width: 200px; 12 width: 200px;
13 height: 200px; 13 height: 200px;
14 -webkit-transform: translateZ(0px); 14 -webkit-transform: translateZ(0px);
15 background: blue; 15 background: blue;
16 } 16 }
17 #child > div { 17 #child > div {
18 width: 100px; 18 width: 100px;
19 height: 100px; 19 height: 100px;
20 -webkit-transform: translateZ(0px); 20 -webkit-transform: translateZ(0px);
21 background: green; 21 background: green;
22 } 22 }
23 </style> 23 </style>
24 <script type="text/javascript" charset="utf-8"> 24 <script type="text/javascript" charset="utf-8">
25 if (window.testRunner) { 25 if (window.testRunner) {
26 testRunner.waitUntilDone(); 26 testRunner.waitUntilDone();
27 testRunner.dumpAsText(true); 27 testRunner.dumpAsTextWithPixelResults();
28 } 28 }
29 function doTest() 29 function doTest()
30 { 30 {
31 var child = document.getElementById('child'); 31 var child = document.getElementById('child');
32 32
33 window.setTimeout(function() { 33 window.setTimeout(function() {
34 // Move the parent forward 34 // Move the parent forward
35 child.style.webkitTransform = "translateZ(10px)"; 35 child.style.webkitTransform = "translateZ(10px)";
36 if (window.testRunner) { 36 if (window.testRunner) {
37 window.setTimeout(function() { 37 window.setTimeout(function() {
38 testRunner.notifyDone(); 38 testRunner.notifyDone();
39 }, 0); 39 }, 0);
40 } 40 }
41 }, 0); 41 }, 0);
42 } 42 }
43 43
44 window.addEventListener('load', doTest, false); 44 window.addEventListener('load', doTest, false);
45 </script> 45 </script>
46 </head> 46 </head>
47 <body> 47 <body>
48 <!-- When the test is done, you should see a green square inside the blue square --> 48 <!-- When the test is done, you should see a green square inside the blue square -->
49 49
50 <div id="parent"> 50 <div id="parent">
51 <div id="child"> 51 <div id="child">
52 <div></div> 52 <div></div>
53 </div> 53 </div>
54 </div> 54 </div>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698