Bug 1883912: Enable Intl.ListFormat test for "unit" style. r=spidermonkey-reviewers...
[gecko.git] / editor / libeditor / tests / test_bug46555.html
blob3838bdb3b209576790b848d3b28a11b3e9031bfa
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=46555
8 -->
10 <head>
11 <title>Test for Bug 46555</title>
12 <script src="/tests/SimpleTest/SimpleTest.js"></script>
13 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
14 </head>
16 <body>
17 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=46555">Mozilla Bug 46555</a>
18 <p id="display"></p>
19 <div id="content" style="display: none">
20 </div>
22 <input type="text" value="" id="t1" />
24 <pre id="test">
25 <script type="application/javascript">
27 /** Test for Bug 46555 **/
28 SimpleTest.waitForExplicitFinish();
29 SimpleTest.waitForFocus(function() {
30 const kCmd = "cmd_selectAll";
32 var input = document.getElementById("t1");
33 input.focus();
34 var controller =
35 SpecialPowers.wrap(input).controllers.getControllerForCommand(kCmd);
37 // Test 1: Select All should be disabled if editor is empty
38 is(controller.isCommandEnabled(kCmd), false,
39 "Select All command disabled when editor is empty");
41 SimpleTest.finish();
42 });
43 </script>
44 </pre>
46 </body>
47 </html>