Search events should not fire synchronously for search type input elements with incre...
[WebKit-https.git] / LayoutTests / fast / forms / search / search-incremental-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5     if (window.testRunner)
6         testRunner.dumpAsText();
7
8     var runcount = 0;
9     function go() {
10         runcount++;
11         if (runcount > 2)
12             return;
13
14         i.type = "foo";
15         i.select();
16         i.type = "search";
17
18         document.onsearch = document.body.onload;
19
20         document.execCommand("insertHTML", false, "");
21     }
22 </script>
23 </head>
24 <body onload=go()>
25 <input id="i" type="checkbox" incremental="incremental">
26 Test passes if WebKit doesn't crash.
27 </body>
28 </html>