[EFL][WK2] Add API unit tests for Web Intents
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Aug 2012 12:29:18 +0000 (12:29 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Aug 2012 12:29:18 +0000 (12:29 +0000)
commit488fa6ccab8a8970320b5497589e985c9339161c
tree4ea44312dc48afff54ee9e1c7932a74abc7c1dd3
parent4032931f9eab300848478567e86e924386abf5e7
[EFL][WK2] Add API unit tests for Web Intents
https://bugs.webkit.org/show_bug.cgi?id=90454

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-08-19
Reviewed by Kenneth Rohde Christiansen.

Add unit testing for Web intent requests,
including the "intent,request,new" signal on
the Ewk_View and the Ewk_Intent API.

* UIProcess/API/efl/ewk_view.h: Fix documentation for argument type of "intent,request,new" signal.
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
(EWK2UnitTest::EWK2UnitTestBase::mouseClick): Add utility method to simulate a click at given
coordinates. This is needed for testing functionality that requires a user gesture.
(EWK2UnitTest):
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
(EWK2UnitTestBase):
* UIProcess/API/efl/tests/resources/intent-request.html: Added.
* UIProcess/API/efl/tests/test_ewk2_intents.cpp:
(stringSortCb):
(onIntentReceived):
(TEST_F):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/efl/ewk_view.h
Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp
Source/WebKit2/UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h
Source/WebKit2/UIProcess/API/efl/tests/resources/intent-request.html [new file with mode: 0644]
Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_intents.cpp