toolkit/components/passwordmgr/test/test_basic_form.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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>

mercurial