toolkit/components/passwordmgr/test/subtst_privbrowsing_2.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_2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <title>Subtest for Login Manager notifications (private browsing)</title>
     1.7 +</head>
     1.8 +<body>
     1.9 +<h2>Subtest 2</h2>
    1.10 +<!--
    1.11 +  Make sure that the password-change notification appears outside of
    1.12 +  the private mode, but not inside it.
    1.13 +-->
    1.14 +<form id="form" action="formsubmit.sjs">
    1.15 +  <input id="pass" name="pass" type="password">
    1.16 +  <input id="newpass" name="newpass" type="password">
    1.17 +  <button type='submit'>Submit</button>
    1.18 +</form>
    1.19 +
    1.20 +<script>
    1.21 +function submitForm() {
    1.22 +  passField.value = "notifyp1";
    1.23 +  passField2.value = "notifyp2";
    1.24 +  form.submit();
    1.25 +}
    1.26 +
    1.27 +window.onload = submitForm;
    1.28 +var form      = document.getElementById("form");
    1.29 +var passField = document.getElementById("pass");
    1.30 +var passField2 = document.getElementById("newpass");
    1.31 +
    1.32 +</script>
    1.33 +</body>
    1.34 +</html>

mercurial