[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.19
[framework/web/webkit-efl.git] / LayoutTests / webintents / web-intents-reload.html
1 <html>
2   <head>
3     <script src="../fast/js/resources/js-test-pre.js"></script>
4     <script src="resources/web-intents-testing.js"></script>
5     <script>
6       var latch = true;
7
8       function buttonClicked() {
9         frames[0].startIntent();
10       }
11
12       function frameloaded() {
13         if (latch) {
14           latch = false;
15           startTest();
16           return;
17         }
18
19         debug("* loaded replacement page");
20
21         if (window.layoutTestController) {
22           window.layoutTestController.notifyDone();
23         }
24       }
25
26       function startTest() {
27         if (window.layoutTestController) {
28           window.layoutTestController.waitUntilDone();
29           window.layoutTestController.dumpChildFramesAsText();
30         } else {
31           alert('This test needs to run in DRT');
32         }
33
34         debug("* loaded");
35
36         simulateButtonPress();
37         debug("* sent mouseup");
38       }
39     </script>
40   </head>
41 <body>
42 <input type="button" id="button" value="Start Web Intent" onmouseup="buttonClicked()">
43 <iframe id="frame" onload="frameloaded()" src="resources/web-intents-reload-orig.html"></iframe>
44 </body>
45 </html>