toolkit/components/passwordmgr/test/subtst_privbrowsing_4.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/passwordmgr/test/subtst_privbrowsing_4.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <title>Subtest for Login Manager notifications (private browsing)</title>
     1.7 +  <script type="text/javascript" src="pwmgr_common.js"></script>
     1.8 +</head>
     1.9 +<body>
    1.10 +<h2>Subtest 4</h2>
    1.11 +<!--
    1.12 +  Make sure that the user/pass fields have manual filling enabled
    1.13 +  in private mode.
    1.14 +-->
    1.15 +<form id="form" action="formsubmit.sjs">
    1.16 +  <input id="user" name="user" type="text">
    1.17 +  <input id="pass" name="pass" type="password">
    1.18 +  <button type='submit'>Submit</button>
    1.19 +</form>
    1.20 +
    1.21 +<script>
    1.22 +function startAutocomplete() {
    1.23 +  userField.focus();
    1.24 +  doKey("down");
    1.25 +  setTimeout(submitForm, 100);
    1.26 +}
    1.27 +
    1.28 +function submitForm() {
    1.29 +  doKey("down");
    1.30 +  doKey("return");
    1.31 +  setTimeout(function(){ form.submit(); }, 100);
    1.32 +}
    1.33 +
    1.34 +window.onload = startAutocomplete;
    1.35 +var form      = document.getElementById("form");
    1.36 +var userField = document.getElementById("user");
    1.37 +
    1.38 +</script>
    1.39 +</body>
    1.40 +</html>

mercurial