no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / base / tests / bug1109968-1.html
blobf5b2871168f568709b2a14719db5266894f1e41e
1 <html class="reftest-wait">
2 <head>
3 <script src="/tests/SimpleTest/EventUtils.js"></script>
4 </head>
5 <body onload="start()">
6 <div onfocus="setTimeout(done, 0)" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
7 <script>
8 var div = document.querySelector("div");
9 function start() {
10 div.focus();
12 function done() {
13 var sel = getSelection();
14 sel.collapse(div, 0);
15 // Press Right four times to set the caret right before "baz"
16 for (var i = 0; i < 4; ++i) {
17 synthesizeKey("KEY_ArrowRight");
19 document.documentElement.removeAttribute("class");
21 </script>
22 </body>
23 </html>