editor/libeditor/text/tests/test_bug757771.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <!DOCTYPE html>
michael@0 2 <!--
michael@0 3 https://bugzilla.mozilla.org/show_bug.cgi?id=757771
michael@0 4 -->
michael@0 5 <title>Test for Bug 757771</title>
michael@0 6 <script src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 7 <script src="/tests/SimpleTest/EventUtils.js"></script>
michael@0 8 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
michael@0 9 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=757771">Mozilla Bug 757771</a>
michael@0 10 <input value=foo maxlength=4>
michael@0 11 <input type=password value=password>
michael@0 12 <script>
michael@0 13 /** Test for Bug 757771 **/
michael@0 14
michael@0 15 SimpleTest.waitForExplicitFinish();
michael@0 16 SimpleTest.waitForFocus(function() {
michael@0 17 var textInput = document.querySelector("input");
michael@0 18 textInput.focus();
michael@0 19 textInput.select();
michael@0 20 sendString("abcde");
michael@0 21
michael@0 22 var passwordInput = document.querySelector("input + input");
michael@0 23 passwordInput.focus();
michael@0 24 passwordInput.select();
michael@0 25 sendString("hunter2");
michael@0 26
michael@0 27 ok(true, "No real tests, just crashes/asserts");
michael@0 28
michael@0 29 SimpleTest.finish();
michael@0 30 });
michael@0 31 </script>

mercurial