Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Test for Login Manager</title> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <script type="text/javascript" src="pwmgr_common.js"></script> |
michael@0 | 7 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | Login Manager test: forms with no password fields |
michael@0 | 11 | <p id="display"></p> |
michael@0 | 12 | |
michael@0 | 13 | <div id="content" style="display: none"> |
michael@0 | 14 | |
michael@0 | 15 | <!-- Form with no user field or password field --> |
michael@0 | 16 | <form id="form1" action="formtest.js"> |
michael@0 | 17 | <button type="submit">Submit</button> |
michael@0 | 18 | <button type="reset"> Reset </button> |
michael@0 | 19 | </form> |
michael@0 | 20 | |
michael@0 | 21 | <!-- Form with no user field or password field, but one other field --> |
michael@0 | 22 | <form id="form2" action="formtest.js"> |
michael@0 | 23 | <input type="checkbox"> |
michael@0 | 24 | <button type="submit">Submit</button> |
michael@0 | 25 | <button type="reset"> Reset </button> |
michael@0 | 26 | </form> |
michael@0 | 27 | |
michael@0 | 28 | <!-- Form with no user field or password field, but one other field --> |
michael@0 | 29 | <form id="form3" action="formtest.js"> |
michael@0 | 30 | <input type="checkbox" name="uname" value=""> |
michael@0 | 31 | <button type="submit">Submit</button> |
michael@0 | 32 | <button type="reset"> Reset </button> |
michael@0 | 33 | </form> |
michael@0 | 34 | |
michael@0 | 35 | <!-- Form with a text field, but no password field --> |
michael@0 | 36 | <form id="form4" action="formtest.js"> |
michael@0 | 37 | <input type="text" name="yyyyy"> |
michael@0 | 38 | |
michael@0 | 39 | <button type="submit">Submit</button> |
michael@0 | 40 | <button type="reset"> Reset </button> |
michael@0 | 41 | </form> |
michael@0 | 42 | |
michael@0 | 43 | <!-- Form with a user field, but no password field --> |
michael@0 | 44 | <form id="form5" action="formtest.js"> |
michael@0 | 45 | <input type="text" name="uname"> |
michael@0 | 46 | |
michael@0 | 47 | <button type="submit">Submit</button> |
michael@0 | 48 | <button type="reset"> Reset </button> |
michael@0 | 49 | </form> |
michael@0 | 50 | |
michael@0 | 51 | </div> |
michael@0 | 52 | |
michael@0 | 53 | <pre id="test"> |
michael@0 | 54 | <script class="testbody" type="text/javascript"> |
michael@0 | 55 | |
michael@0 | 56 | /** Test for Login Manager: form fill, no password fields. **/ |
michael@0 | 57 | |
michael@0 | 58 | commonInit(); |
michael@0 | 59 | |
michael@0 | 60 | function startTest() { |
michael@0 | 61 | is($_(3, "uname").value, "", "Checking for unfilled checkbox (form 3)"); |
michael@0 | 62 | is($_(4, "yyyyy").value, "", "Checking for unfilled text field (form 4)"); |
michael@0 | 63 | is($_(5, "uname").value, "", "Checking for unfilled text field (form 5)"); |
michael@0 | 64 | |
michael@0 | 65 | SimpleTest.finish(); |
michael@0 | 66 | } |
michael@0 | 67 | |
michael@0 | 68 | window.onload = startTest; |
michael@0 | 69 | |
michael@0 | 70 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 71 | </script> |
michael@0 | 72 | </pre> |
michael@0 | 73 | </body> |
michael@0 | 74 | </html> |
michael@0 | 75 |