Summary: | [EFL][DRT]DumpRenderTree needs to reset focus state when test starts. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michal Pakula vel Rutka <mpakulavelrutka> | ||||||||||
Component: | WebKit EFL | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | g.czajkowski, gyuyoung.kim, lucas.de.marchi, rakuco, webkit.review.bot | ||||||||||
Priority: | P3 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Linux | ||||||||||||
Attachments: |
|
Description
Michal Pakula vel Rutka
2012-09-19 02:17:43 PDT
Created attachment 164701 [details]
proposed patch
The patch adds main frame focusing similar to WebKit-GTK's DumpRenderTree view focusing in dump() function. Then tests will start with main frame focused regardless of earlier test's frame focus state.
LGTM. Just wondering, did you try to set the frame focus in DumpRenderTreeChrome::resetDefaultsToConsistentValues()? IMHO it's good place to restore the original settings before running test. (In reply to comment #2) > LGTM. > > Just wondering, did you try to set the frame focus in DumpRenderTreeChrome::resetDefaultsToConsistentValues()? IMHO it's good place to restore the original settings before running test. I checked and it also fixes the problem. I will check if it does not introduce any regressions, and then post a new patch. Created attachment 164746 [details]
setting focus moved into resetDefaultsToConsistentValues
Comment on attachment 164746 [details] setting focus moved into resetDefaultsToConsistentValues View in context: https://bugs.webkit.org/attachment.cgi?id=164746&action=review Thanks for your verification of newly proposed approach and changes. Looks better. > LayoutTests/ChangeLog:8 > + Remove two flaky tests from TestExpectations. Please add a note that after setting frame focus the tests are passing now. > Tools/ChangeLog:8 > + Add focusing a main frame on each test dump. on each test dump -> on settings reset? Created attachment 164859 [details]
change log fixes
Comment on attachment 164859 [details] change log fixes View in context: https://bugs.webkit.org/attachment.cgi?id=164859&action=review > Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp:291 > ewk_view_text_direction_set(mainView(), EWK_TEXT_DIRECTION_DEFAULT); It would be good if you add a new line to here. Created attachment 164864 [details]
moved focusing function below
Comment on attachment 164864 [details]
moved focusing function below
Looks fine.
Comment on attachment 164864 [details]
moved focusing function below
LGTM. Thanks.
Comment on attachment 164864 [details] moved focusing function below Clearing flags on attachment: 164864 Committed r129110: <http://trac.webkit.org/changeset/129110> All reviewed patches have been landed. Closing bug. |