Bug 47471 - convert editing/selection/script-tests/click-in-margins-inside-editable-div.js to use LayoutTestController::setEditingBehavior
Summary: convert editing/selection/script-tests/click-in-margins-inside-editable-div.j...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Antonio Gomes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-10 11:47 PDT by Antonio Gomes
Modified: 2010-10-11 06:42 PDT (History)
3 users (show)

See Also:


Attachments
(committed r69489, r=kling) patch v1 (18.31 KB, patch)
2010-10-10 23:49 PDT, Antonio Gomes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Gomes 2010-10-10 11:47:26 PDT
... that way we can share the same expected result to all platforms.
Comment 1 Antonio Gomes 2010-10-10 23:49:11 PDT
Created attachment 70425 [details]
(committed r69489, r=kling) patch v1

Patch converts the editing/selection/click-in-margins-inside-editable-div to make use of the LayoutTestController::setEditingBehavior machinary. That way, all platform specific editing behavior code paths can be test in the same execution, and we make it possible to share the same expected result file through all ports.
Comment 2 Antonio Gomes 2010-10-10 23:50:18 PDT
Ossy, could double check if patch is ok on qt buildbots, please?
Comment 3 Csaba Osztrogonác 2010-10-11 04:20:40 PDT
(In reply to comment #2)
> Ossy, could double check if patch is ok on qt buildbots, please?
Done. It works for me.
Comment 4 Andreas Kling 2010-10-11 06:31:34 PDT
Comment on attachment 70425 [details]
(committed r69489, r=kling) patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=70425&action=review

> LayoutTests/ChangeLog:9
> +        LayoutTestController::setEditingBehavior machinary. That way, all platform specific editing behavior

s/machinary/machinery/

> LayoutTests/editing/selection/script-tests/click-in-margins-inside-editable-div.js:71
>  // Later we could break this into two tests, one that tests each platform's rules,
>  // since this is supported as a setting in the Settings object, but for now we'll
>  // just use separate expected results for Mac and other platforms.

Seems like this comment should be removed now.
Comment 5 Antonio Gomes 2010-10-11 06:42:29 PDT
Comment on attachment 70425 [details]
(committed r69489, r=kling) patch v1

Clearing flags on attachment: 70425.

Committed r69489: <http://trac.webkit.org/changeset/69489>
Comment 6 Antonio Gomes 2010-10-11 06:42:56 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > Ossy, could double check if patch is ok on qt buildbots, please?
> Done. It works for me.

Thank you for the help.