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

Side by Side Diff: LayoutTests/compositing/geometry/limit-layer-bounds-transformed-overflow.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 9 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 body { 6 body {
7 position: relative; 7 position: relative;
8 } 8 }
9 .container { 9 .container {
10 position: relative; 10 position: relative;
(...skipping 30 matching lines...) Expand all
41 .indicator { 41 .indicator {
42 position: absolute; 42 position: absolute;
43 top: 21px; 43 top: 21px;
44 left: 121px; 44 left: 121px;
45 width: 200px; 45 width: 200px;
46 height: 100px; 46 height: 100px;
47 background-color: red; 47 background-color: red;
48 } 48 }
49 </style> 49 </style>
50 <script type="text/javascript" charset="utf-8"> 50 <script type="text/javascript" charset="utf-8">
51 if (window.testRunner) { 51 if (window.testRunner)
52 testRunner.dumpAsText(); 52 testRunner.dumpAsText();
53 testRunner.waitUntilDone();
54 }
55 53
56 function doTest() 54 function doTest()
57 { 55 {
58 if (window.testRunner) { 56 if (window.testRunner) {
59 // We need to call display() here to sync the compositor state and avoid a race condition.
60 testRunner.display();
61 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); 57 document.getElementById('layers').innerText = window.internals.layerTree AsText(document);
62 testRunner.notifyDone();
63 } 58 }
64 } 59 }
65 60
66 window.addEventListener('load', doTest, false); 61 window.addEventListener('load', doTest, false);
67 </script> 62 </script>
68 </head> 63 </head>
69 64
70 <body> 65 <body>
71 66
72 <!-- Go into compositing. --> 67 <!-- Go into compositing. -->
73 <div class="compositing"></div> 68 <div class="compositing"></div>
74 69
75 <div class="indicator"></div> 70 <div class="indicator"></div>
76 71
77 <!-- Test clipping to viewport with some intermediate layers. --> 72 <!-- Test clipping to viewport with some intermediate layers. -->
78 <!-- Green box should extend to the left edge. No red visible. "middle" should be visible --> 73 <!-- Green box should extend to the left edge. No red visible. "middle" should be visible -->
79 <div class="container"> 74 <div class="container">
80 <div class="far-left"> 75 <div class="far-left">
81 <p class="middle">middle</p> 76 <p class="middle">middle</p>
82 </div> 77 </div>
83 </div> 78 </div>
84 <pre id="layers">Layer tree goes here in DRT</pre> 79 <pre id="layers">Layer tree goes here in DRT</pre>
85 </body> 80 </body>
86 </html> 81 </html>
87 82
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698