| var isindexElm = document.getElementById("isindex"); |
| if (!location.search.length) { |
| testRunner.waitUntilDone(); |
| isindexElm.value = "This is a test"; |
| eventSender.keyDown(String.fromCharCode(0x0d)); |
| var expected = "?This+is+a+test"; |
| if (location.search != expected) |
| log("FAIL: Expected \"" + expected + "\" but got \"" + location.search + "\""); |
| document.getElementById("log").appendChild(document.createTextNode(msg + "\n")); |
| <p>This page tests that we correctly put the value of an <tt><isindex></tt> element into the form data.</p> |
| <p>If you are running this test by hand, press the enter/return key on your keyboard to submit.</p> |
| <isindex id="isindex"></isindex> |