Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / select-onchange-crash.html
1 <html>\r
2   <head>\r
3     <script>\r
4         if (window.testRunner)\r
5         {\r
6             testRunner.dumpAsText();\r
7             testRunner.waitUntilDone();\r
8         }\r
9         window.onload = function ()\r
10         {\r
11             var element = document.getElementById("test");\r
12             element.onchange = function() { element.size = 30; }\r
13             element.focus();\r
14             if (window.testRunner)\r
15             {\r
16                 // This triggers selection of second option in the select and press Enter.\r
17                 eventSender.keyDown("e");\r
18                 eventSender.keyDown("\r", []);\r
19                 // This triggers repaint.\r
20                 document.body.offsetTop;\r
21                 \r
22                 document.getElementById("log").innerHTML = "<span style='color: green;'>PASS:</span> Did not crash";\r
23                 testRunner.notifyDone();\r
24             }\r
25          }\r
26     </script>\r
27   </head>\r
28   <body>\r
29     This test is to ensure that we do not crash when onchange handler changes the select from a menu list to a list box.\r
30     <p id="log"><span style='color: red;'>FAIL:</span> Did not complete test or not running inside DumpRenderTree</p>\r
31     <select id="test">\r
32       <option selected>abcd</option>\r
33       <option>efgh</option>\r
34     </select>\r
35   </body>\r
36 </html>\r
37 \r