test_cmd_increaseFont.html (726B)
1 <!DOCTYPE html> 2 <!-- 3 https://bugzilla.mozilla.org/show_bug.cgi?id=767684 4 --> 5 <title>Test for Bug 767684</title> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <link rel="stylesheet" href="/tests/SimpleTest/test.css"> 8 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=767684">Mozilla Bug 767684</a> 9 <div contenteditable>foo<b>bar</b>baz</div> 10 <script> 11 SimpleTest.waitForExplicitFinish(); 12 (async () => { 13 getSelection().selectAllChildren(document.querySelector("div")); 14 SpecialPowers.doCommand(window, "cmd_increaseFont"); 15 is( 16 document.querySelector("div").innerHTML, 17 "<big>foo<b>bar</b>baz</big>", 18 "All selected text must be embiggened" 19 ); 20 SimpleTest.finish(); 21 })(); 22 </script>