14 марта 2014 г., в 6:07, Deepak Mittal <[email protected]>
написал(а):
> I wanted to simulate 'end' key behavior for one of my test case..
>
> I know selecting
> function key + rightArrow key will do same behavior as 'end' key in mac..
>
> But I wanted to know how to do that in the java script..so that my test case
> get passed in the mac..
I think that you are looking for either window.getSelection().modify("move",
"forward", "line") or testRunner.execCommand("MoveToEndOfLine").
Selection.modify() is a WebKit extension that works in any WebKit based
application, and the testRunner method obviously only works in
DumpRenderTree/WebKitTestRunner.
- WBR, Alexey Proskuryakov
_______________________________________________
webkit-help mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-help