RESOLVED FIXED 118699
[EFL][WK2] Replace mouseClick with more meaningful method in test_ewk2_text_checker.cpp
https://bugs.webkit.org/show_bug.cgi?id=118699
Summary [EFL][WK2] Replace mouseClick with more meaningful method in test_ewk2_text_c...
Donggwan Kim
Reported 2013-07-15 18:26:21 PDT
Many mouseClick methods are used in test_ewk2_text_checker.cpp. But it is difficult to understand what they mean. So i would like to replace those with more meaningful method for readability.
Attachments
Patch (17.90 KB, patch)
2013-07-15 23:01 PDT, Donggwan Kim
no flags
Patch (18.20 KB, patch)
2013-07-15 23:44 PDT, Donggwan Kim
no flags
Donggwan Kim
Comment 1 2013-07-15 23:01:31 PDT
Chris Dumez
Comment 2 2013-07-15 23:23:03 PDT
Comment on attachment 206725 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=206725&action=review > Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:74 > + void showContextMenuWithFirstLineText() How about introducing enums: enum Line { FirstLine, SecondLine } enum Button { SelectAllWithSpellcheckButton, SelectAllWithoutSpellcheckButton, SelectSubWordWithSpellcheckButton } and rename the methods to: clickButton(Button button); showContextMenu(Line line); selectFirstWord(Line line);
Donggwan Kim
Comment 3 2013-07-15 23:25:35 PDT
It sounds good to me. I will modify and upload the patch again as you guided.
Donggwan Kim
Comment 4 2013-07-15 23:44:34 PDT
Donggwan Kim
Comment 5 2013-07-15 23:44:57 PDT
It sounds good to me. I will modify and upload the patch again as you guided.
Chris Dumez
Comment 6 2013-07-15 23:56:58 PDT
Comment on attachment 206729 [details] Patch Ok, r=me.
WebKit Commit Bot
Comment 7 2013-07-16 00:34:59 PDT
Comment on attachment 206729 [details] Patch Clearing flags on attachment: 206729 Committed r152708: <http://trac.webkit.org/changeset/152708>
WebKit Commit Bot
Comment 8 2013-07-16 00:35:01 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.