Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
[gecko.git] / editor / libeditor / tests / test_bug740784.html
blob74e837438598e23043106cd58262eb2cf7ef8f6e
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 src="/tests/SimpleTest/EventUtils.js"></script>
13 <script src="/tests/SimpleTest/SimpleTest.js"></script>
14 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
15 </head>
17 <body>
18 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=740784">Mozilla Bug 740784</a>
19 <p id="display"></p>
20 <div id="content" style="display: none">
21 </div>
23 <pre id="test">
24 <script type="application/javascript">
26 /** Test for Bug 740784 **/
28 SimpleTest.waitForExplicitFinish();
29 SimpleTest.waitForFocus(function() {
30 var t1 = $("t1");
32 t1.focus();
33 synthesizeKey("KEY_End");
34 synthesizeKey("KEY_Backspace");
35 synthesizeKey("z", {accelKey: true});
37 is(t1.value, "a", "trailing <br> correctly ignored");
39 SimpleTest.finish();
40 });
41 </script>
42 </pre>
44 <textarea id="t1" rows="2" columns="80">a</textarea>
45 </body>
46 </html>