Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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
12 <script>
13 commonInit();
14 SimpleTest.waitForExplicitFinish();
16 /** Test for Login Manager: form fill, multiple forms. **/
18 function startTest() {
19 is($_(1, "uname").value, "testuser", "Checking for filled username");
20 is($_(1, "pword").value, "testpass", "Checking for filled password");
22 SimpleTest.finish();
23 }
25 window.onload = startTest;
26 </script>
28 <p id="display"></p>
30 <div id="content" style="display: none">
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">
37 <button type="submit">Submit</button>
38 <button type="reset"> Reset </button>
39 </form>
41 </div>
43 <pre id="test"></pre>
44 </body>
45 </html>