summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/input-password-remask.html
blob: 31149eac8d56076c8bfe9925529cfcd75fbdd553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>
<input type="password" value="abcdef">
<script>
  function runTest() {
    let input = document.getElementsByTagName("input")[0];
    input.focus();
    input.setSelectionRange(3, 4);
    let editor = SpecialPowers.wrap(input).editor;
    editor.unmask(0, 6);
    editor.mask();
    document.documentElement.removeAttribute("class");
  }

  SimpleTest.waitForFocus(runTest);
</script>

</body>
</html>