1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/tests/test_bug780035.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=780035 1.7 +--> 1.8 +<title>Test for Bug 780035</title> 1.9 +<script src="/tests/SimpleTest/SimpleTest.js"></script> 1.10 +<script src="/tests/SimpleTest/EventUtils.js"></script> 1.11 +<link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.12 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=780035">Mozilla Bug 780035</a> 1.13 +<div contenteditable style="font-size: 13.3333px"></div> 1.14 +<script> 1.15 +SimpleTest.waitForExplicitFinish(); 1.16 +SimpleTest.waitForFocus(function() { 1.17 + document.querySelector("div").focus(); 1.18 + document.execCommand("stylewithcss", false, true); 1.19 + sendKey("RETURN"); 1.20 + sendChar("x"); 1.21 + is(document.querySelector("div").innerHTML, "x<br>", 1.22 + "No <font> tag should be generated"); 1.23 + SimpleTest.finish(); 1.24 +}); 1.25 +</script>