Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE HTML><html class="reftest-wait"><head>
2 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
3 </head>
4 <body>
5 <div contenteditable="true">
6 <p id="p">A B CD EFG<br>
7 1234567890</p>
8 </div>
9 x
10 <script>
11 // Position the caret after "A"
12 var sel = window.getSelection();
13 sel.removeAllRanges();
14 var range = document.createRange();
15 var p = document.getElementById('p');
16 var t = p.firstChild;
17 range.setStart(t, 1);
18 range.setEnd(t, 1);
19 sel.addRange(range);
20 p.parentNode.focus();
22 SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
23 onSpellCheck(p.parentNode, function () {
24 sendKey('DOWN'); // now after "1"
25 sendKey('DOWN'); // now make sure we get to the end
26 sendKey('DOWN'); // now make sure we get to the end
27 sendKey('DOWN'); // now make sure we get to the end
28 sendKey('DOWN'); // now make sure we get to the end
29 sendKey('DOWN'); // now make sure we get to the end
30 document.documentElement.classList.remove("reftest-wait");
31 });
32 </script>
33 </body>
34 </html>