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

Side by Side Diff: LayoutTests/http/tests/misc/isindex-with-no-form.html

Issue 96653004: Remove support for the obsolete <isindex> tag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function test()
5 {
6 var isindexElm = document.getElementById("isindex");
7 if (!location.search.length) {
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12
13 isindexElm.value = "This is a test";
14 isindexElm.focus();
15
16 if (window.eventSender)
17 eventSender.keyDown(String.fromCharCode(0x0d));
18 } else {
19 var expected = "?This+is+a+test";
20 if (location.search != expected)
21 log("FAIL: Expected \"" + expected + "\" but got \"" + location.sear ch + "\"");
22 else
23 log("PASS");
24
25 if (window.testRunner)
26 testRunner.notifyDone();
27 }
28 }
29
30 function log(msg)
31 {
32 document.getElementById("log").appendChild(document.createTextNode(msg + "\n "));
33 }
34
35 window.onload = test;
36 </script>
37 </head>
38 <body>
39 <p>This page tests that we correctly put the value of an <tt>&lt;isindex&gt;</tt > element into the form data.</p>
40 <p>If you are running this test by hand, press the enter/return key on your keyb oard to submit.</p>
41 <isindex id="isindex"></isindex>
42 <pre id="log"></pre>
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698