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

Side by Side Diff: LayoutTests/compositing/geometry/ancestor-overflow-change.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 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 #container { 6 #container {
7 position: relative; 7 position: relative;
8 height: 50px; 8 height: 50px;
9 width: 100px; 9 width: 100px;
10 outline: 2px solid black; 10 outline: 2px solid black;
(...skipping 18 matching lines...) Expand all
29 height: 100px; 29 height: 100px;
30 background-color: red; 30 background-color: red;
31 } 31 }
32 32
33 #layers { 33 #layers {
34 opacity: 0; /* Hide from pixel results */ 34 opacity: 0; /* Hide from pixel results */
35 } 35 }
36 </style> 36 </style>
37 <script type="text/javascript" charset="utf-8"> 37 <script type="text/javascript" charset="utf-8">
38 if (window.testRunner) { 38 if (window.testRunner) {
39 testRunner.dumpAsText(true); 39 testRunner.dumpAsTextWithPixelResults();
40 testRunner.waitUntilDone(); 40 testRunner.waitUntilDone();
41 } 41 }
42 42
43 function changeOverflow() 43 function changeOverflow()
44 { 44 {
45 document.getElementById('container').className = 'changed'; 45 document.getElementById('container').className = 'changed';
46 46
47 if (window.testRunner) 47 if (window.testRunner)
48 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); 48 document.getElementById('layers').innerText = window.internals.layerTree AsText(document);
49 49
50 if (window.testRunner) 50 if (window.testRunner)
51 testRunner.notifyDone(); 51 testRunner.notifyDone();
52 } 52 }
53 53
54 window.addEventListener('load', function() { 54 window.addEventListener('load', function() {
55 window.setTimeout(changeOverflow, 0); 55 window.setTimeout(changeOverflow, 0);
56 }, false); 56 }, false);
57 </script> 57 </script>
58 </head> 58 </head>
59 <body> 59 <body>
60 60
61 <div id="indicator"></div> 61 <div id="indicator"></div>
62 <div id="container"> 62 <div id="container">
63 <div class="box"></div> 63 <div class="box"></div>
64 </div> 64 </div>
65 65
66 <pre id="layers">Layer tree goes here in DRT</pre> 66 <pre id="layers">Layer tree goes here in DRT</pre>
67 </body> 67 </body>
68 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698