Home | History | Annotate | Download | only in data
      1 <html>
      2   <!-- This page is meant to loaded inside the host browser (IE, FF, etc.) -->
      3   <head>
      4     <script type="text/javascript" src="chrome_frame_tester_helpers.js">
      5     </script>
      6     <script type="text/javascript" src="CFInstance.js"></script>
      7   </head>
      8 
      9   <body>
     10     <div id="statusPanel" style="border: 1px solid red; width: 100%">
     11       Test running....
     12     </div>
     13 
     14     <div id="toBeReplaced"> 
     15       fallback content goes here 
     16     </div>
     17     <script type="text/javascript">
     18       var testName = "CFInstanceSingleton";
     19       (function() {
     20         try{
     21           var cf = new CFInstance({
     22             src: "CFInstance_singleton_frame.html",
     23             node: "toBeReplaced"
     24           });
     25 
     26           // test a call/response set of actions driven by the CF content
     27           cf.listen("message", function(evt) {
     28             if (evt.data == "foo") {
     29               cf.postMessage("bar");
     30             } else if(evt.data == "baz") {
     31               onSuccess(testName, 1);
     32             }
     33           });
     34 
     35         } catch (e) {
     36           onFailure(testName, 1,
     37                     "CFInstance constructor failed with error: " + e);
     38         } 
     39       })();
     40     </script>
     41     <p>Tests ChromeFrame Navigation</p>
     42   </body>
     43 </html>
     44 
     45