| OLD | NEW |
| 1 <HTML> | 1 <HTML> |
| 2 <HEAD> | 2 <HEAD> |
| 3 <script> | 3 <script> |
| 4 window.onload = function() | 4 window.onload = function() |
| 5 { | 5 { |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 | 8 |
| 9 if (window.location.href.indexOf('formSubmitted') != -1) | 9 if (window.location.href.indexOf('formSubmitted') != -1) |
| 10 return; | 10 return; |
| 11 document.getElementById('searchBox').value= 'quentin'; | 11 document.getElementById('searchBox').value= 'quentin'; |
| 12 document.getElementById('searchForm').submit(); | 12 document.getElementById('searchForm').submit(); |
| 13 }; | 13 }; |
| 14 </script> | 14 </script> |
| 15 </HEAD> | 15 </HEAD> |
| 16 <BODY> | 16 <BODY> |
| 17 | 17 |
| 18 <p>This page tests that a page with a search popup does not crash, as reported i
n <a href='https://bugs.webkit.org/show_bug.cgi?id=37141'>this bug</a>. Below is
a search input that the test automatically fills then submits. Pass if this doe
s not crash.</p><br><br> | 18 <p>This page tests that a page with a search popup does not crash, as reported i
n <a href='https://bugs.webkit.org/show_bug.cgi?id=37141'>this bug</a>. Below is
a search input that the test automatically fills then submits. Pass if this doe
s not crash.</p><br><br> |
| 19 <FORM action="" id="searchForm"> | 19 <FORM action="" id="searchForm"> |
| 20 <INPUT autosave="my.search" id="searchBox" type="search" results="10" value=""><
br> | 20 <INPUT autosave="my.search" id="searchBox" type="search" results="10" value=""><
br> |
| 21 <INPUT type="hidden" name="state" value="formSubmitted"><br> | 21 <INPUT type="hidden" name="state" value="formSubmitted"><br> |
| 22 <INPUT type="submit" value="Search"> | 22 <INPUT type="submit" value="Search"> |
| 23 </FORM> | 23 </FORM> |
| 24 | 24 |
| 25 </BODY> | 25 </BODY> |
| 26 </HTML> | 26 </HTML> |
| OLD | NEW |