Video is not started even if play button has been pressed.
[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.testRunner) {
22           window.testRunner.notifyDone();
23         }
24       }
25
26       function startTest() {
27         if (window.testRunner) {
28           window.testRunner.waitUntilDone();
29           window.testRunner.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>