editor/libeditor/text/tests/test_bug638596.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

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=638596
     5 -->
     6 <head>
     7   <title>Test for Bug 638596</title>
     8   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=638596">Mozilla Bug 638596</a>
    14 <p id="display"></p>
    15 <div id="content">
    16   <input type="password" style="font-size: 0">
    17 </div>
    18 <pre id="test">
    19 <script type="application/javascript">
    21 if (navigator.platform.startsWith("Linux")) {
    22   SimpleTest.expectAssertions(1);
    23 }
    25 /** Test for Bug 638596 **/
    26 SimpleTest.waitForExplicitFinish();
    27 SimpleTest.waitForFocus(function() {
    28   var i = document.querySelector("input");
    29   i.focus();
    30   synthesizeKey("t", {});
    31   synthesizeKey("e", {});
    32   synthesizeKey("s", {});
    33   synthesizeKey("t", {});
    34   is(i.value, "test", "The correct value should be stored in the field");
    35   SimpleTest.finish();
    36 });
    38 </script>
    39 </pre>
    40 </body>
    41 </html>

mercurial