4 https://bugzilla.mozilla.org/show_bug.cgi?id=439808
7 <title>Test for Bug
439808</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=439808">Mozilla Bug
439808</a>
16 <span><span contenteditable
id=
"e">twest
</span></span>
19 <script type=
"application/javascript">
21 /** Test for Bug
439808 **/
22 SimpleTest.waitForExplicitFinish();
23 SimpleTest.waitForFocus(function() {
24 var e = document.getElementById(
"e");
26 getSelection().collapse(e.firstChild,
1);
27 synthesizeKey(
"KEY_Delete");
28 is(e.textContent,
"test",
"Delete key worked");
29 synthesizeKey(
"KEY_Backspace");
30 is(e.textContent,
"est",
"Backspace key worked");