editor/libeditor/text/tests/test_bug757771.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/text/tests/test_bug757771.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=757771
     1.7 +-->
     1.8 +<title>Test for Bug 757771</title>
     1.9 +<script src="/tests/SimpleTest/SimpleTest.js"></script>
    1.10 +<script src="/tests/SimpleTest/EventUtils.js"></script>
    1.11 +<link rel="stylesheet" href="/tests/SimpleTest/test.css">
    1.12 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=757771">Mozilla Bug 757771</a>
    1.13 +<input value=foo maxlength=4>
    1.14 +<input type=password value=password>
    1.15 +<script>
    1.16 +/** Test for Bug 757771 **/
    1.17 +
    1.18 +SimpleTest.waitForExplicitFinish();
    1.19 +SimpleTest.waitForFocus(function() {
    1.20 +  var textInput = document.querySelector("input");
    1.21 +  textInput.focus();
    1.22 +  textInput.select();
    1.23 +  sendString("abcde");
    1.24 +
    1.25 +  var passwordInput = document.querySelector("input + input");
    1.26 +  passwordInput.focus();
    1.27 +  passwordInput.select();
    1.28 +  sendString("hunter2");
    1.29 +
    1.30 +  ok(true, "No real tests, just crashes/asserts");
    1.31 +
    1.32 +  SimpleTest.finish();
    1.33 +});
    1.34 +</script>

mercurial