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

Side by Side Diff: LayoutTests/compositing/iframes/overlapped-nested-iframes.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 height: 1500px; 7 height: 1500px;
8 margin: 0; 8 margin: 0;
9 } 9 }
10 #banner { 10 #banner {
11 position: fixed; 11 position: fixed;
12 top: 0; 12 top: 0;
13 width: 100%; 13 width: 100%;
14 height: 120px; 14 height: 120px;
15 background-color: rgba(0, 0, 0, 0.5); 15 background-color: rgba(0, 0, 0, 0.5);
16 } 16 }
17 iframe { 17 iframe {
18 display: block; 18 display: block;
19 margin: 20px; 19 margin: 20px;
20 height: 200px; 20 height: 200px;
21 width: 280px; 21 width: 280px;
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.dumpAsText(); 26 testRunner.dumpAsText();
27 testRunner.waitUntilDone();
28 } 27 }
29 28
30 function doTest() 29 function doTest()
31 { 30 {
32 // For some reason this delay is required for AppKit to not short-circui t the display. 31 window.scrollTo(0, 100);
33 window.setTimeout(function() { 32 if (window.testRunner) {
34 window.scrollTo(0, 100); 33 document.getElementById('layers').innerHTML = window.internals.layerTr eeAsText(document);
35 // Force a paint, and give layers a chance to update. 34 }
36 if (window.testRunner)
37 testRunner.display();
38 window.setTimeout(function() {
39 if (window.testRunner) {
40 document.getElementById('layers').innerHTML = window.internals.l ayerTreeAsText(document);
41 testRunner.notifyDone();
42 }
43 }, 0);
44 }, 0);
45 } 35 }
46 36
47 window.addEventListener('load', doTest, false); 37 window.addEventListener('load', doTest, false);
48 </script> 38 </script>
49 </head> 39 </head>
50 <body> 40 <body>
51 <div id="banner"></div> 41 <div id="banner"></div>
52 42
53 <!-- Tests that when scrolled so that one iframe is overlapped, both iframes 43 <!-- Tests that when scrolled so that one iframe is overlapped, both iframes
54 and their contents become composited. --> 44 and their contents become composited. -->
55 <iframe style="margin-top: 150px;" src="resources/intermediate-frame.html">< /iframe> 45 <iframe style="margin-top: 150px;" src="resources/intermediate-frame.html">< /iframe>
56 <iframe src="resources/intermediate-frame.html"></iframe> 46 <iframe src="resources/intermediate-frame.html"></iframe>
57 47
58 <pre id="layers">Layer tree appears here in DRT.</pre> 48 <pre id="layers">Layer tree appears here in DRT.</pre>
59 </body> 49 </body>
60 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698