RESOLVED FIXED49366
[Chromium][DRT] EventSender.contextClick() should aware spellchecking
https://bugs.webkit.org/show_bug.cgi?id=49366
Summary [Chromium][DRT] EventSender.contextClick() should aware spellchecking
Hajime Morrita
Reported 2010-11-11 00:28:20 PST
Return value of EventSender.contextClick() doesn't care about spellchecking, that makes editing/spelling/context-menu-suggestions.html fail. See also Bug 39105.
Attachments
Patch (11.80 KB, patch)
2010-11-17 00:51 PST, Hajime Morrita
no flags
Patch (6.55 KB, patch)
2010-11-17 01:25 PST, Hajime Morrita
no flags
fixing cr-linux build failure (6.56 KB, patch)
2010-11-17 01:33 PST, Hajime Morrita
no flags
Patch (6.49 KB, patch)
2010-11-17 01:40 PST, Hajime Morrita
tkent: review+
Hajime Morrita
Comment 1 2010-11-17 00:51:49 PST
WebKit Review Bot
Comment 2 2010-11-17 00:56:48 PST
Kent Tamura
Comment 3 2010-11-17 01:05:17 PST
Comment on attachment 74087 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74087&action=review > LayoutTests/ChangeLog:9 > + - Added a test for improve the coverage. > + - Unskipped one passed test. Do not do two things in one patch. Adding a test (not Chromium-specific) should be separated from the DRT change (Chromium-specific). > LayoutTests/editing/spelling/script-tests/context-menu-suggestions-for-selection.js:51 > \ No newline at end of file Add a line-break. > LayoutTests/platform/chromium/test_expectations.txt:696 > -// Need to dump context menu items on eventSender.contextClick(true). > -BUGWK39105 : editing/spelling/context-menu-suggestions.html = TEXT > +// Need to enable mock spellchecker. see Bug 45633 > +BUGWK45633 WIN LINUX : editing/spelling/context-menu-suggestions.html = TEXT The DRT change is DRT-only. So test_shell still fail with it, right?
Hajime Morrita
Comment 4 2010-11-17 01:25:51 PST
WebKit Review Bot
Comment 5 2010-11-17 01:29:30 PST
Kent Tamura
Comment 6 2010-11-17 01:31:36 PST
Comment on attachment 74089 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74089&action=review > WebKitTools/DumpRenderTree/chromium/EventSender.cpp:756 > + for (int i = 0; i < suggestions.size(); ++i) "i" should be unsigned. > WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp:95 > +void MockSpellCheck::fillSuggestionList(const WebString& word, > + Vector<WebString>* suggestions) nit: no need to break the line > WebKitTools/DumpRenderTree/chromium/MockSpellCheck.h:66 > + void fillSuggestionList(const WebKit::WebString& word, > + Vector<WebKit::WebString>* suggestions); nit: no need to break the line
Hajime Morrita
Comment 7 2010-11-17 01:33:18 PST
Created attachment 74090 [details] fixing cr-linux build failure
Hajime Morrita
Comment 8 2010-11-17 01:33:52 PST
Hi Kent-san, thank you for reviewing! I updated the patch. (In reply to comment #3) > (From update of attachment 74087 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=74087&action=review > > > LayoutTests/ChangeLog:9 > > + - Added a test for improve the coverage. > > + - Unskipped one passed test. > Do not do two things in one patch. Adding a test (not Chromium-specific) should be separated from the DRT change (Chromium-specific). Sure. I removed the test from this patch. It will be filed as another bug and fix it after this change is ported to test_shell. > > LayoutTests/platform/chromium/test_expectations.txt:696 > > -// Need to dump context menu items on eventSender.contextClick(true). > > -BUGWK39105 : editing/spelling/context-menu-suggestions.html = TEXT > > +// Need to enable mock spellchecker. see Bug 45633 > > +BUGWK45633 WIN LINUX : editing/spelling/context-menu-suggestions.html = TEXT > > The DRT change is DRT-only. So test_shell still fail with it, right? Yes. I discarded this change. I'll do this after test_shell porting.
Hajime Morrita
Comment 9 2010-11-17 01:40:06 PST
Hajime Morrita
Comment 10 2010-11-17 01:40:51 PST
(In reply to comment #6) > (From update of attachment 74089 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=74089&action=review > > > WebKitTools/DumpRenderTree/chromium/EventSender.cpp:756 > > + for (int i = 0; i < suggestions.size(); ++i) > > "i" should be unsigned. Fixed. It broke cr-linux build... > > > WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp:95 > > +void MockSpellCheck::fillSuggestionList(const WebString& word, > > + Vector<WebString>* suggestions) > > nit: no need to break the line Fixed. > > > WebKitTools/DumpRenderTree/chromium/MockSpellCheck.h:66 > > + void fillSuggestionList(const WebKit::WebString& word, > > + Vector<WebKit::WebString>* suggestions); > > nit: no need to break the line Fixed.
Hajime Morrita
Comment 11 2010-11-17 02:50:00 PST
Note You need to log in before you can comment on or make changes to this bug.