Chromium Code Reviews| Index: chrome/test/data/prerender/plugin_delay_load.html |
| diff --git a/chrome/test/data/prerender/plugin_delay_load.html b/chrome/test/data/prerender/plugin_delay_load.html |
| index cc18dc3303319f9ad45f62f159a4e2447b7ba105..a8606a99224da29945e437d1526a13defece730a 100644 |
| --- a/chrome/test/data/prerender/plugin_delay_load.html |
| +++ b/chrome/test/data/prerender/plugin_delay_load.html |
| @@ -1,7 +1,10 @@ |
| <html> |
| -<!-- |
| +<!-- |
| This test checks to make sure plugins aren't loaded when a page is prerendered, |
| but are loaded once the page is displayed. |
| + |
| +This test relies on the Pepper plugin (but not the placeholder) implementing |
| +a the postMessage() function on the plugin object. |
|
raymes
2015/04/15 06:44:18
nit: the postMessage() function
tommycli
2015/04/15 18:23:18
Done.
|
| --> |
| <head> |
| <title>Prerender Plugin Delay Loading</title> |
| @@ -12,18 +15,18 @@ function DidPrerenderPass() { |
| // |plugin| should be the blocked plugin placeholder, rather than the |
| // test plugin. |
| var plugin = window.document['plugin']; |
| - return plugin.getURL == undefined; |
| + return plugin.postMessage == undefined; |
| } |
| // Make sure plugin loads once the page is displayed. |
| function DidDisplayPass() { |
| var plugin = window.document['plugin']; |
| - return plugin.getURL != undefined; |
| + return plugin.postMessage != undefined; |
| } |
| </script> |
| </head> |
| <body> |
| -<embed name="plugin" type="application/x-webkit-test-netscape"></embed> |
| +<embed name="plugin" type="application/x-ppapi-tests"></embed> |
| </body> |
| </html> |