1
0
Fork 0
firefox/layout/base/tests/input-password-remask.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
524 B
HTML

<!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>