Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / password / password_form.html
blob2ae17cb6c18af8e1baa2e19ded3f7bef78ed15cd
1 <html>
2 <body>
3 <form method="POST" action="done.html" onsubmit="return true;" id="testform">
4 <input type="text" id="username_field" name="username_field">
5 <input type="password" id="password_field" name="password_field">
6 <input type="submit" id="input_submit_button" name="input_submit_button">
7 </form>
9 <button id="submit_button" name="submit_button"
10 onclick="document.getElementById('testform').submit()">
11 Submit!
12 </button>
14 <a id="link" href="done.html">Go somewhere</a>
16 <form method="POST" action="done.html" id="testform_no_name">
17 <input type="text" id="username_field_no_name">
18 <input type="password" id="password_field_no_name">
19 <input type="submit" id="input_submit_button_no_name">
20 </form>
22 <form method="POST" action="done.html" id="testform_elements_no_id">
23 <input type="text" name="username_field_no_id">
24 <input type="password" name="password_field_no_id">
25 <input type="submit" name="input_submit_button_no_id">
26 </form>
28 <form method="POST" action="redirect.html" id="redirectform">
29 <input type="text" id="username_redirect" name="username_redirect">
30 <input type="password" id="password_redirect" name="password_redirect">
31 <input type="submit" id="submit_redirect" name="submit_redirect">
32 </form>
34 <form method="POST" action="does_not_exist.html" id="form_with_http_error_status_code_landing_page">
35 <input type="text" id="username_field_http_error">
36 <input type="password" id="password_field_http_error">
37 <input type="submit" id="input_submit_button_http_error">
38 </form>
40 <!--
41 Don't add anything inside this form, and don't change the order of the
42 elements. Because the elements have no "id" or "name" attributes, the test
43 needs to access them by their offsets in the array of the form children.
44 -->
45 <form method="POST" action="done.html" id="testform_elements_no_id_no_name">
46 <input type="text">
47 <input type="password">
48 <input type="submit">
49 </form>
51 <form method="POST" action="done_and_unrelated_form.html" id="to_unrelated">
52 <input type="text" id="username_unrelated" name="username_unrelated">
53 <input type="password" id="password_unrelated" name="password_unrelated">
54 <input type="submit" id="submit_unrelated" name="submit_unrelated">
55 </form>
57 <form method="POST" action="failed.html" id="to_failed">
58 <input type="text" id="username_failed" name="username_failed">
59 <input type="password" id="password_failed" name="password_failed">
60 <input type="submit" id="submit_failed" name="submit_failed">
61 </form>
63 <!-- Change password form with username. -->
64 <form action="done.html" id="chg_testform">
66 <input type="text" id="chg_username_field" name="chg_username_field">
67 <input type="password" id="chg_password_field" name="chg_password_field">
68 <input type="password" id="chg_new_password_1" name="chg_new_password_1">
69 <input type="password" id="chg_new_password_2" name="chg_new_password_2">
70 <input type="submit" id="chg_submit_button" name="chg_submit_button">
71 </form>
73 <!-- Change password form without the username. -->
74 <form action="done.html" id="chg_testform_wo_username">
75 <input type="password" id="chg_password_wo_username_field" name="chg_password_wo_username_field">
76 <input type="password" id="chg_new_password_wo_username_1" name="chg_new_password_wo_username_1">
77 <input type="password" id="chg_new_password_wo_username_2" name="chg_new_password_wo_username_2">
78 <input type="submit" id="chg_submit_wo_username_button" name="chg_submit_button">
79 </form>
80 </body>
81 </html>