| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 function test() | |
| 5 { | |
| 6 var isindexElm = document.getElementById("isindex"); | |
| 7 if (!location.search.length) { | |
| 8 if (window.testRunner) { | |
| 9 testRunner.dumpAsText(); | |
| 10 testRunner.waitUntilDone(); | |
| 11 } | |
| 12 | |
| 13 isindexElm.value = "This is a test"; | |
| 14 isindexElm.focus(); | |
| 15 | |
| 16 if (window.eventSender) | |
| 17 eventSender.keyDown(String.fromCharCode(0x0d)); | |
| 18 } else { | |
| 19 var expected = "?This+is+a+test"; | |
| 20 if (location.search != expected) | |
| 21 log("FAIL: Expected \"" + expected + "\" but got \"" + location.sear
ch + "\""); | |
| 22 else | |
| 23 log("PASS"); | |
| 24 | |
| 25 if (window.testRunner) | |
| 26 testRunner.notifyDone(); | |
| 27 } | |
| 28 } | |
| 29 | |
| 30 function log(msg) | |
| 31 { | |
| 32 document.getElementById("log").appendChild(document.createTextNode(msg + "\n
")); | |
| 33 } | |
| 34 | |
| 35 window.onload = test; | |
| 36 </script> | |
| 37 </head> | |
| 38 <body> | |
| 39 <p>This page tests that we correctly put the value of an <tt><isindex></tt
> element into the form data.</p> | |
| 40 <p>If you are running this test by hand, press the enter/return key on your keyb
oard to submit.</p> | |
| 41 <isindex id="isindex"></isindex> | |
| 42 <pre id="log"></pre> | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |