Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_plugin_click_to_play.html
blobc07afa5392d84f0d6c2b8b60069ac32c2a31a766
1 <html>
2 <!--
3 This test checks to make sure plugins aren't loaded when prerendered page
4 is displayed and click-to-play is enabled.
5 -->
6 <head>
7 <title>Prerender click-to-play</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 still hasn't loaded once the page is displayed.
19 function DidDisplayPass() {
20 // |plugin| should be the blocked plugin placeholder, rather than the
21 // test plugin.
22 var plugin = window.document['plugin'];
23 return plugin.getURL == undefined;
25 </script>
27 </head>
28 <body>
29 <embed name="plugin" type="application/x-webkit-test-netscape"></embed>
30 </body>
31 </html>