3 This test checks to make sure that plugins in an iframe are only
4 loaded once a page is displayed.
7 <title>Prerender Iframe Plugins</title>
10 // Make sure plugin was not loaded while prerendering.
11 function DidPrerenderPass() {
12 var plugin_iframe = document.getElementById('plugin_iframe');
13 return plugin_iframe.contentWindow.DidPrerenderPass();
16 // Make sure plugin loads once the page is displayed.
17 function DidDisplayPass() {
18 var plugin_iframe = document.getElementById('plugin_iframe');
19 return plugin_iframe.contentWindow.DidDisplayPass();
23 <iframe src="plugin_delay_load.html" id="plugin_iframe"></iframe>