mouseClick() test function's only able to test a left button of mouse now. However, EFL API test framwork needs to test various mouse buttons. For example, context menu test needs to simulate a right mouse button.
Created attachment 173855 [details] Patch
Comment on attachment 173855 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173855&action=review > Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:50 > - void mouseClick(int x, int y); > + void mouseClick(int x, int y, int button); Instead of adding 1 to all calls in the unit tests, you can just make it the default here: void mouseClick(int x, int y, int button = 1);
Created attachment 173901 [details] Patch
(In reply to comment #2) > Instead of adding 1 to all calls in the unit tests, you can just make it the default here: > void mouseClick(int x, int y, int button = 1); I missed this. Thanks.
Comment on attachment 173901 [details] Patch LGTM. Don't mouseDown() and mouseUp() need to be changed as well?
Created attachment 173905 [details] Patch
(In reply to comment #5) > (From update of attachment 173901 [details]) > LGTM. Don't mouseDown() and mouseUp() need to be changed as well? mouseClick() is enough for me. But, I also think other functions need to have the button parameter as well. Thanks.
Comment on attachment 173905 [details] Patch LGTM.
Comment on attachment 173905 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173905&action=review r=me. > Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:50 > + void mouseClick(int x, int y, int button = 1); Maybe we can add the comment here, instead of removing it void mouseClick(int x, int y, int button = 1 /* Left */);
Created attachment 174047 [details] Patch
Comment on attachment 174047 [details] Patch Clearing flags on attachment: 174047 Committed r134540: <http://trac.webkit.org/changeset/134540>
All reviewed patches have been landed. Closing bug.