OLD | NEW |
1 <!doctype HTML> | 1 <!doctype HTML> |
2 <style> | 2 <iframe src="resources/iframe-with-webview-plugin.html"></iframe> |
3 #plugin { | |
4 width: 150px; | |
5 height: 150px; | |
6 border: 1px solid black; | |
7 } | |
8 </style> | |
9 <embed id="plugin" type="application/x-plugin-placeholder-test"></embed> | |
10 <script> | 3 <script> |
11 onload = function() { | 4 onload = function() { |
12 if (window.testRunner) { | 5 if (window.testRunner) { |
13 window.testRunner.waitUntilDone(); | 6 window.testRunner.waitUntilDone(); |
14 // Need to paint two frames in order to allow the plugin to properly loa
d. | 7 // Need to paint two frames in order to allow the plugin to properly loa
d. |
15 // TODO(chrishtr): find out why and fix. | 8 // TODO(chrishtr): find out why and fix. |
16 requestAnimationFrame(function() { | 9 requestAnimationFrame(function() { |
17 requestAnimationFrame(function() { | 10 requestAnimationFrame(function() { |
18 requestAnimationFrame(function() { | 11 requestAnimationFrame(function() { |
19 window.testRunner.notifyDone(); | 12 window.testRunner.notifyDone(); |
20 }); | 13 }); |
21 }); | 14 }); |
22 }); | 15 }); |
23 } | 16 } |
24 } | 17 } |
25 </script> | 18 </script> |
OLD | NEW |