upload webkit/tizen 2.0_beta source.
[framework/web/webkit-efl.git] / LayoutTests / fast / forms / button-click-DOM.html
1 <html>
2 <script>
3 function test() {
4     document.getElementById("thebutton").click(); 
5     if (window.layoutTestController) 
6         layoutTestController.dumpAsText();
7 }
8
9 function clicky() {
10     document.getElementById("thediv").innerHTML= "test passed";
11 }
12
13 </script>
14 <head>
15 <title>Test case for HTMLButtonElement.click()</title>
16 </head>
17 <body onload="test();">
18 <h3>Test case for HTMLButtonElement.click()</h3>
19 Successful if it reads "test passed" below <span style="color: red">upon loading the page</span> <br>
20 <BUTTON id=thebutton onclick="clicky();">No need to click me. In fact, don't.</BUTTON>
21 <div id=thediv>
22 test failed <br>
23 </div>
24 </body>
25 </html>