1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/tests/test_bug767684.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=767684 1.7 +--> 1.8 +<title>Test for Bug 767684</title> 1.9 +<script src="/tests/SimpleTest/SimpleTest.js"></script> 1.10 +<link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.11 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=767684">Mozilla Bug 767684</a> 1.12 +<div contenteditable>foo<b>bar</b>baz</div> 1.13 +<script> 1.14 +getSelection().selectAllChildren(document.querySelector("div")); 1.15 +document.execCommand("increaseFontSize"); 1.16 +is(document.querySelector("div").innerHTML, "<big>foo<b>bar</b>baz</big>", 1.17 + "All selected text must be embiggened"); 1.18 +</script>