| <p>This tests that WebKit can obtain form value from plugins</p> |
| <form action="" id="form"> |
| <object type="application/x-webkit-test-netscape" test="form-value" name="plugin"></object> |
| testRunner.waitUntilDone(); |
| var div = document.createElement('div'); |
| var console = document.getElementById('console'); |
| console.appendChild(div); |
| if (document.location.href.indexOf('?') == -1) { |
| document.getElementById('form').submit(); |
| var values = document.location.search.substring(1); |
| log('form values: "' + values + '"'); |
| if (values == 'plugin=Plugin+form+value') |
| log('PASS: The form value was successfully obtained.'); |
| log('FAIL: Could not obtain the form value correctly.'); |