5 testRunner
.dumpEditingCallbacks();
8 <title>An upstream caret can be impossible to create
</title>
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();
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>
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>