4 https://bugzilla.mozilla.org/show_bug.cgi?id=550434
7 <title>Test for Bug
550434</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
10 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=550434">Mozilla Bug
550434</a>
16 <div id=
"editor" contenteditable=
"true"
17 style=
"height: 250px; height: 200px; border: 4px solid red; outline: none;"></div>
20 <script type=
"application/javascript">
22 /** Test for Bug
550434 **/
24 SimpleTest.waitForExplicitFinish();
25 SimpleTest.waitForFocus(function() {
26 var ed = document.getElementById(
"editor");
28 // Simulate click twice
29 synthesizeMouse(ed,
10,
10, {});
30 synthesizeMouse(ed,
50,
50, {});
31 setTimeout(function() {
34 is(ed.innerHTML,
"x",
"Editor should work after being clicked twice");