- add sources.
[platform/framework/web/crosswalk.git] / src / chrome_frame / test / data / CFInstance_iframe_onload_host.html
1 <html>
2   <!-- This page is meant to loaded inside the host browser (IE, FF, etc.) -->
3   <head>
4     <script type="text/javascript" 
5             src="chrome_frame_tester_helpers.js"></script>
6     <script type="text/javascript" 
7             src="CFInstance.js"></script>
8   </head>
9
10   <body>
11     <div id="statusPanel" style="border: 1px solid red; width: 100%">
12       Test running....
13     </div>
14
15     <div id="parent">
16       <div id="prev">before</div><div id="toBeReplaced"> 
17         fallback content goes here 
18       </div><div id="after">after</div>
19     </div>
20     <script type="text/javascript">
21       var testName = "CFInstanceIfrOnload";
22       (function() {
23         try {
24           var cf = new CFInstance({
25             node: "toBeReplaced",
26             src: "CFInstance_basic_frame.html",
27             onload: function() {
28               onSuccess(testName, 1);
29             },
30             requirements: [] // always use an iframe
31           });
32         } catch (e) {
33           onFailure(testName, 1,
34                     "CFInstance constructor failed with error: "+e);
35         } 
36       })();
37     </script>
38     <p>Tests CFInstance event handling on iframes</p>
39   </body>
40 </html>
41