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>
5 <div id=
"console"></div>
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();
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.');
27 log('FAIL: Could not obtain the form value correctly.');
28 if (window
.testRunner
)
29 testRunner
.notifyDone();