Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / prerender / plugin_delay_load.html
blobb55262c9f60a6f02f4acc60b42c8c28d2917a0df
1 <html>
2 <!--
3 This test checks to make sure plugins aren't loaded when a page is prerendered,
4 but are loaded once the page is displayed.
5 -->
6 <head>
7 <title>Prerender Plugin Delay Loading</title>
9 <script>
10 // Make sure plugin was not loaded while prerendering.
11 function DidPrerenderPass() {
12 // |plugin| should be the blocked plugin placeholder, rather than the
13 // test plugin.
14 var plugin = window.document['plugin'];
15 return plugin.getURL == undefined;
18 // Make sure plugin loads once the page is displayed.
19 function DidDisplayPass() {
20 var plugin = window.document['plugin'];
21 return plugin.getURL != undefined;
23 </script>
25 </head>
26 <body>
27 <embed name="plugin" type="application/x-webkit-test-netscape"></embed>
28 </body>
29 </html>