| OLD | NEW |
| (Empty) |
| 1 <p>This tests that WebKit can obtain form value from plugins</p> | |
| 2 <form action="" id="form"> | |
| 3 <object type="application/x-webkit-test-netscape" test="form-value" name="pl
ugin"></object> | |
| 4 </form> | |
| 5 <div id="console"></div> | |
| 6 <script> | |
| 7 if (window.testRunner) { | |
| 8 testRunner.dumpAsText(); | |
| 9 testRunner.waitUntilDone(); | |
| 10 } | |
| 11 | |
| 12 function log(message) { | |
| 13 var div = document.createElement('div'); | |
| 14 div.innerHTML = message; | |
| 15 var console = document.getElementById('console'); | |
| 16 console.appendChild(div); | |
| 17 } | |
| 18 | |
| 19 if (document.location.href.indexOf('?') == -1) { | |
| 20 document.getElementById('form').submit(); | |
| 21 } else { | |
| 22 var values = document.location.search.substring(1); | |
| 23 log('form values: "' + values + '"'); | |
| 24 if (values == 'plugin=Plugin+form+value') | |
| 25 log('PASS: The form value was successfully obtained.'); | |
| 26 else | |
| 27 log('FAIL: Could not obtain the form value correctly.'); | |
| 28 if (window.testRunner) | |
| 29 testRunner.notifyDone(); | |
| 30 } | |
| 31 </script> | |
| OLD | NEW |