toolkit/components/passwordmgr/test/test_basic_form.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:31bf76eaea27
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for Login Manager</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script type="text/javascript" src="pwmgr_common.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
8 </head>
9 <body>
10 Login Manager test: simple form fill
11
12 <script>
13 commonInit();
14 SimpleTest.waitForExplicitFinish();
15
16 /** Test for Login Manager: form fill, multiple forms. **/
17
18 function startTest() {
19 is($_(1, "uname").value, "testuser", "Checking for filled username");
20 is($_(1, "pword").value, "testpass", "Checking for filled password");
21
22 SimpleTest.finish();
23 }
24
25 window.onload = startTest;
26 </script>
27
28 <p id="display"></p>
29
30 <div id="content" style="display: none">
31
32 <form id="form1" action="formtest.js">
33 <p>This is form 1.</p>
34 <input type="text" name="uname">
35 <input type="password" name="pword">
36
37 <button type="submit">Submit</button>
38 <button type="reset"> Reset </button>
39 </form>
40
41 </div>
42
43 <pre id="test"></pre>
44 </body>
45 </html>
46

mercurial