Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / toolkit / components / passwordmgr / test / test_basic_form_1pw_2.html
blob54117e704f266cc3c9169c876c724093d080cc18
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for Login Manager</title>
5 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
6 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
7 <script type="text/javascript" src="pwmgr_common.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
9 </head>
10 <body>
11 Login Manager test: forms with 1 password field, part 2
12 <p id="display"></p>
14 <div id="content" style="display: none">
16 <form id='form1' action='formtest.js'> 1
17 <input type='password' name='pname' value=''>
18 <button type='submit'>Submit</button>
19 </form>
21 <form id='form2' action='formtest.js'> 2
22 <input type='password' name='pname' value='' disabled>
23 <button type='submit'>Submit</button>
24 </form>
26 <form id='form3' action='formtest.js'> 3
27 <input type='password' name='pname' value='' readonly>
28 <button type='submit'>Submit</button>
29 </form>
31 <form id='form4' action='formtest.js'> 4
32 <input type='text' name='uname' value=''>
33 <input type='password' name='pname' value=''>
34 <button type='submit'>Submit</button>
35 </form>
37 <form id='form5' action='formtest.js'> 5
38 <input type='text' name='uname' value='' disabled>
39 <input type='password' name='pname' value=''>
40 <button type='submit'>Submit</button>
41 </form>
43 <form id='form6' action='formtest.js'> 6
44 <input type='text' name='uname' value='' readonly>
45 <input type='password' name='pname' value=''>
46 <button type='submit'>Submit</button>
47 </form>
49 <form id='form7' action='formtest.js'> 7
50 <input type='text' name='uname' value=''>
51 <input type='password' name='pname' value='' disabled>
52 <button type='submit'>Submit</button>
53 </form>
55 <form id='form8' action='formtest.js'> 8
56 <input type='text' name='uname' value=''>
57 <input type='password' name='pname' value='' readonly>
58 <button type='submit'>Submit</button>
59 </form>
61 <form id='form9' action='formtest.js'> 9
62 <input type='text' name='uname' value='TESTUSER'>
63 <input type='password' name='pname' value=''>
64 <button type='submit'>Submit</button>
65 </form>
67 </div>
69 <pre id="test">
70 <script class="testbody" type="text/javascript">
72 /** Test for Login Manager: simple form fill, part 2 **/
74 function startTest() {
75 var f;
77 // Test various combinations of disabled/readonly inputs
78 checkForm(1, "testpass"); // control
79 checkUnmodifiedForm(2);
80 checkUnmodifiedForm(3);
81 checkForm(4, "testuser", "testpass"); // control
82 for (f = 5; f <= 8; f++) { checkUnmodifiedForm(f); }
83 // Test case-insensitive comparison of username field
84 checkForm(9, "testuser", "testpass");
86 SimpleTest.finish();
90 window.onload = startTest;
92 SimpleTest.waitForExplicitFinish();
93 </script>
94 </pre>
95 </body>
96 </html>