editor/libeditor/text/tests/test_bug740784.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this file,
     4    - You can obtain one at http://mozilla.org/MPL/2.0/.  -->
     5 <html>
     6 <!--
     7 https://bugzilla.mozilla.org/show_bug.cgi?id=740784
     8 -->
    10 <head>
    11   <title>Test for Bug 740784</title>
    12   <script type="application/javascript" src="/MochiKit/packed.js"></script>
    13   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    14   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    15   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
    16 </head>
    18 <body>
    19   <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=740784">Mozilla Bug 740784</a>
    20   <p id="display"></p>
    21   <div id="content" style="display: none">
    22   </div>
    24   <pre id="test">
    25     <script type="application/javascript">
    27       /** Test for Bug 740784 **/
    29       SimpleTest.waitForExplicitFinish();
    30       SimpleTest.waitForFocus(function() {
    31         var t1 = $("t1");
    33         t1.focus();
    34         synthesizeKey("VK_END", {});
    35         synthesizeKey("VK_BACK_SPACE", {});
    36         synthesizeKey("Z", {accelKey: true});
    38         // Was the former bogus node changed to a mozBR?
    39         is(t1.value, "a", "trailing <br> correctly ignored");
    41         SimpleTest.finish();
    42       });
    43    </script>
    44   </pre>
    46   <textarea id="t1" rows="2" columns="80">a</textarea>
    47 </body>
    48 </html>

mercurial