Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 6476.html
blobc922cdbca0a71afdd14cc081e1df51c4d2451c57
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpEditingCallbacks();
6 </script>
8 <title>An upstream caret can be impossible to create</title>
9 <script>
10 function runTest() {
11 if (window.testRunner) {
12 var e = document.getElementById("clickme");
13 var x = e.offsetLeft + e.offsetWidth + 15;
14 var y = e.offsetTop + e.offsetHeight / 2;
16 eventSender.mouseMoveTo(x, y);
17 eventSender.mouseDown();
18 eventSender.mouseUp();
21 </script>
22 </head>
23 <body onLoad="runTest();">
24 <div style="width:250px;" id="test" contenteditable="true">Try to create a caret after this lin<span id="clickme">e</span> <span></span>thisshouldbeonthesecondline </div>
25 <hr>
26 <p>This is a testcase for <a href="https://bugs.webkit.org/show_bug.cgi?id=6476">http://bugzilla.opendarwin.org/show_bug.cgi?id=6476</a>. Creating an upstream caret with the mouse was impossible if the upstream and downstream carets were separated only by unrendered content.</p><p>This test uses the eventSender to do mouse clicks. To run it manually, click in the space after all the text on the first line in the above editable region. Clicking should create a caret after the first space after the 'e'.</p>
27 </body></html>