OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | |
7 } | |
6 | 8 |
7 function debug(str) { | 9 function debug(str) { |
8 document.getElementById('console').innerHTML += str + "<br>"; | 10 document.getElementById('console').innerHTML += str + "<br>"; |
9 } | 11 } |
10 </script> | 12 </script> |
11 </head> | 13 </head> |
12 <body> | 14 <body> |
13 <object> | 15 <object> |
14 <p>This test verifies that an <embed> tag is rendered along wi th other fallback content when an <object> fails to load. On success, you should see this text, followed by 'PASS'.</p> | 16 <p>This test verifies that an <embed> tag is rendered along wi th other fallback content when an <object> fails to load. On success, you should see this text, followed by 'PASS'.</p> |
15 <embed name="plugin" type="application/x-webkit-test-netscape"> | 17 <embed name="plugin" type="application/x-blink-test-plugin"> |
16 </object> | 18 </object> |
17 <div id="console"></div> | 19 <div id="console"></div> |
18 <script> | 20 <script> |
19 if (window.internals) | 21 document.querySelector("embed").addEventListener("message", function (message) { |
dcheng
2015/12/01 01:03:30
Is there a better way to tell if a PPAPI plugin lo
| |
20 internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTa sks(); | 22 debug("PASS"); |
21 var plugin = document.plugin; | 23 if (window.testRunner) |
22 if (plugin && plugin.getURL) | 24 testRunner.notifyDone(); |
23 debug("PASS"); | 25 }); |
24 else | |
25 debug("FAIL"); | |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |