- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / prerender / prerender_plugin_nacl_disabled.html
1 <html>
2 <!--
3 Make sure prerendering doesn't load NaCl plugins when disabled.
4 -->
5 <head>
6 <title>Prerender NaCl Disabled</title>
7 </head>
8 <body>
9
10 <script>
11 var pluginLoadStarted = false;
12
13 function eventListener(event) {
14   var targetElement = event.target;
15   if (event.target.id != 'naclPlugin')
16     return;
17   pluginLoadStarted = true;
18 }
19
20 document.body.addEventListener('loadstart', eventListener, true);
21
22 function DidPrerenderPass() {
23   return !pluginLoadStarted;
24 }
25
26 function DidDisplayPass() {
27   return !pluginLoadStarted;
28 }
29 </script>
30
31 <embed id="naclPlugin" type="application/x-nacl" src="dummy.nmf"></embed>
32 </body>
33 </html>