Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/form-value.html

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698