Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / form-value.html
blob6d89b628eb5dd6f6d666d71a42741f0e2913215c
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="plugin"></object>
4 </form>
5 <div id="console"></div>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 function log(message) {
13 var div = document.createElement('div');
14 div.innerHTML = message;
15 var console = document.getElementById('console');
16 console.appendChild(div);
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();
31 </script>