Bug 1883912: Enable Intl.ListFormat test for "unit" style. r=spidermonkey-reviewers...
[gecko.git] / editor / libeditor / tests / test_bug483651.html
blob4ad570aa8b2a9827ed9df303bfff33fb926b54cc
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
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <html>
6 <!--
7 https://bugzilla.mozilla.org/show_bug.cgi?id=483651
8 -->
10 <head>
11 <title>Test for Bug 483651</title>
12 <script src="/tests/SimpleTest/EventUtils.js"></script>
13 <script src="/tests/SimpleTest/SimpleTest.js"></script>
14 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
15 </head>
17 <body onload="doTest();">
18 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=483651">Mozilla Bug 483651</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 483651 **/
28 SimpleTest.waitForExplicitFinish();
30 function doTest() {
31 var t1 = $("t1");
32 var editor = SpecialPowers.wrap(t1).editor;
34 ok(editor, "able to get editor for the element");
35 t1.focus();
36 sendString("A");
37 synthesizeKey("KEY_Backspace");
39 try {
40 // Was the trailing br removed?
41 is(editor.documentIsEmpty, true, "trailing <br> correctly removed");
42 } catch (e) {
43 ok(false, "test failed with error " + e);
45 SimpleTest.finish();
47 </script>
48 </pre>
50 <textarea id="t1" rows="2" columns="80"></textarea>
51 </body>
52 </html>