1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/tests/test_bug735059.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=735059 1.7 +--> 1.8 +<title>Test for Bug 735059</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=735059">Mozilla Bug 735059</a> 1.12 +<div id="display" contenteditable>foo</div> 1.13 +<pre id="test"> 1.14 +<script> 1.15 +/** Test for Bug 735059 **/ 1.16 + 1.17 +// Value defaults to the empty string, which evaluates to true, so this 1.18 +// disables CSS styling 1.19 +document.execCommand("usecss"); 1.20 +getSelection().selectAllChildren(document.getElementById("display")); 1.21 +document.execCommand("bold"); 1.22 +is(document.getElementById("display").innerHTML, "<b>foo</b>", 1.23 + "execCommand() needs to work with only one parameter"); 1.24 +</script> 1.25 +</pre>