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

Side by Side Diff: LayoutTests/compositing/iframes/iframe-content-flipping.html

Issue 196653012: Remove display() from compositing/ LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: softwarecompositing expectations 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 iframe { 6 iframe {
7 margin: 20px; 7 margin: 20px;
8 height: 200px; 8 height: 200px;
9 width: 200px; 9 width: 200px;
10 border: 1px solid black; 10 border: 1px solid black;
11 } 11 }
12 12
13 .composited { 13 .composited {
14 -webkit-transform: translateZ(0); 14 -webkit-transform: translateZ(0);
15 } 15 }
16 16
17 </style> 17 </style>
18 <script src="../../resources/run-after-display.js"></script>
18 <script type="text/javascript" charset="utf-8"> 19 <script type="text/javascript" charset="utf-8">
19 function doTest() 20 function doTest()
20 { 21 {
21 if (window.testRunner) 22 if (window.testRunner)
22 testRunner.display(); 23 testRunner.waitUntilDone();
23 24
24 document.getElementById('iframe').className = 'composited'; 25 runAfterDisplay(function() {
26 document.getElementById('iframe').className = 'composited';
27 if (window.testRunner)
28 testRunner.notifyDone();
29 });
25 } 30 }
26 31
27 window.addEventListener('load', doTest, false); 32 window.addEventListener('load', doTest, false);
28 </script> 33 </script>
29 </head> 34 </head>
30 <body> 35 <body>
31 36
32 <!-- Test with already-composited iframe contents, and iframe itself composi ted. --> 37 <!-- Test with already-composited iframe contents, and iframe itself composi ted. -->
33 <!-- You should see a green square, no red. --> 38 <!-- You should see a green square, no red. -->
34 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html">< /iframe> 39 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html">< /iframe>
35 40
36 </body> 41 </body>
37 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698