[Webkit-unassigned] [Bug 35314] smartdelete should only occur after double-click

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 23 14:42:13 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35314





--- Comment #1 from Ojan Vafai <ojan at chromium.org>  2010-02-23 14:42:13 PST ---
>From webkit-dev:
On Tue, Feb 23, 2010 at 1:49 PM, Darin Adler <darin at apple.com> wrote:
> On Feb 22, 2010, at 6:47 PM, Ojan Vafai wrote:
> Option-shift-right does not give you smart deletion behavior in Mac OS X NSTextView. Selecting words with double click does. The smart-delete-001.html test is testing a particular case of smart deletion and we do need a test for that fix. But it incorrectly depends on smart deletion mode being set when extending a selection by word. We probably need to turn this into two tests:
>
>    1) Test that extending by word does *not* give you smart deletion.
>
>    2) Test that double clicking at the beginning of a line to do smart deletion correctly deletes both the word and a space.
>
> It might be tricky to write (2) because I don’t know of a way to make a selection that will result in smart deletion with DOM APIs. Maybe execCommand("SelectWord")?

For 1, the current test should suffice. For 2, using eventSender to
double-click should work, right?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list