[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / onblur-remove.html
1 <html>
2   <head>
3       <script src="../js/resources/js-test-pre.js"></script>
4     <script>
5         if (window.layoutTestController)
6             layoutTestController.waitUntilDone();
7
8         var numBlurs = 0;
9
10         window.onload = function() { document.getElementById("input").focus(); }
11
12         function finish() {
13             var f = document.getElementById('f')
14
15             f.innerHTML = '';
16
17             if (numBlurs)
18                 testFailed('Onblur handler called.');
19             else
20                 testPassed('Onblur handler not called.');
21
22             debug('<br /><span class="pass">TEST COMPLETE</span>');
23             if (window.layoutTestController)
24                 layoutTestController.notifyDone();
25         }
26     </script>
27   </head>
28 <body>
29     <p id="description"></p>
30     <form id='f'>
31       <input id="input" onblur="numBlurs++" onfocus="setTimeout('finish()', 0)">
32     </form>
33     <div id="console"></div>
34     <script>
35         description("This tests that elements shouldn't emit any onblur events when they are being removed from the document. <br>" +
36                     "Note, this test is expected to fail as of 04/25/2011. See bug #59379.");
37     </script>
38   </body>
39 </html>