Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / block-with-positioned-lastchild.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div style="padding: 20px;" contenteditable>Click on the left of this line.
5 <div>Caret should NOT be placed in this line,</div>
6 <div style="position:absolute; top:0px; right:0px;"></div>
7 </div>
8 <pre><script>
9
10 if (window.testRunner) {
11     testRunner.dumpAsText();
12
13     var container = document.body.children[0];
14     eventSender.mouseMoveTo(container.offsetLeft + 5, container.offsetTop + 5);
15     eventSender.mouseDown();
16     eventSender.mouseUp();
17
18     if (!getSelection().isCollapsed)
19         document.writeln('FAIL - selection was not collapsed');
20     else if (getSelection().baseNode != container.firstChild)
21         document.writeln('FAIL - caret was not in the first line');
22     else if (getSelection().baseOffset)
23         document.writeln('FAIL - caret was not on the left edge');
24     else
25         document.writeln('PASS');
26 }
27
28 </script></pre>
29 </body>
30 </html>