RESOLVED FIXED 49873
[chromium] editing/selection/extend-selection-home-end.html should have one expected result
https://bugs.webkit.org/show_bug.cgi?id=49873
Summary [chromium] editing/selection/extend-selection-home-end.html should have one e...
Ryosuke Niwa
Reported 2010-11-20 17:23:49 PST
editing/selection/extend-selection-home-end.html has a different expected result on chromium because the last two test specify the width by pixel: http://trac.webkit.org/browser/trunk/LayoutTests/editing/selection/resources/extend-selection.js ['home-end', 'line-break:before-white-space; width:100px', 'abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg '], ['home-end', 'line-break:after-white-space; width:100px', 'abcdefg abcdefg abcdefg a abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg '] We should replace these values by em so that chromium gets the same expected result as other platforms.
Attachments
Patch (9.16 KB, patch)
2010-12-19 19:21 PST, Benjamin (Ben) Kalman
no flags
Benjamin (Ben) Kalman
Comment 1 2010-12-15 21:05:41 PST
This is complicated and possibly blocked (?) by https://bugs.webkit.org/show_bug.cgi?id=51163
Benjamin (Ben) Kalman
Comment 2 2010-12-15 21:12:46 PST
(In reply to comment #1) > This is complicated and possibly blocked (?) by https://bugs.webkit.org/show_bug.cgi?id=51163 I should expand on what I mean here. There should only be 2 different results needed for this test, win/linux and mac, since the mac has different home/end behaviour. So it should just work to have a default expected.txt, and a specialised one in platform/mac. Currently there are 5. Some of these can be reduced by changing 100px to e.g. 5em (as Ryosuke says), but not all, given the test (dumprendertree? not sure) bug with running gtk tests.
Benjamin (Ben) Kalman
Comment 3 2010-12-19 19:21:43 PST
Benjamin (Ben) Kalman
Comment 4 2010-12-19 19:27:26 PST
Unfortunately there are actually 3 results needed. - default results - mac results (since line boundary selection behaviour is different on a mac apparently) - win results that are the same as the default results, because otherwise chromium-{linux,win} falls back to mac
Antonio Gomes
Comment 5 2010-12-19 19:37:32 PST
Comment on attachment 76970 [details] Patch LGTM. I ran the patch locally on Qt and Gtk and both succeeded the test.
WebKit Commit Bot
Comment 6 2010-12-19 21:24:33 PST
Comment on attachment 76970 [details] Patch Clearing flags on attachment: 76970 Committed r74331: <http://trac.webkit.org/changeset/74331>
WebKit Commit Bot
Comment 7 2010-12-19 21:24:40 PST
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 8 2010-12-19 22:31:52 PST
The commit-queue encountered the following flaky tests while processing attachment 76970 [details]: inspector/debugger-pause-on-breakpoint.html bug 51320 (author: podivilov@chromium.org) The commit-queue is continuing to process your patch.
Note You need to log in before you can comment on or make changes to this bug.