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" />
11 Login Manager test: forms with
1 password field, part
2
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>
21 <form id='form2' action='formtest.js'
> 2
22 <input type='password' name='pname' value='' disabled
>
23 <button type='submit'
>Submit
</button>
26 <form id='form3' action='formtest.js'
> 3
27 <input type='password' name='pname' value='' readonly
>
28 <button type='submit'
>Submit
</button>
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>
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>
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>
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>
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>
64 <script class=
"testbody" type=
"text/javascript">
66 /** Test for Login Manager: simple form fill, part
2 **/
68 function startTest() {
71 checkForm(
1,
"testpass"); // control
72 checkUnmodifiedForm(
2);
73 checkUnmodifiedForm(
3);
74 checkForm(
4,
"testuser",
"testpass"); // control
75 for (f =
5; f <=
8; f++) { checkUnmodifiedForm(f); }
81 window.onload = startTest;
83 SimpleTest.waitForExplicitFinish();