Title: [136217] trunk/Tools
Revision
136217
Author
[email protected]
Date
2012-11-30 01:45:52 -0800 (Fri, 30 Nov 2012)

Log Message

[EFL][WK2] Add support for PlatformWebView::simulateRightClick() in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=103634

Patch by Sudarsana Nagineni <[email protected]> on 2012-11-30
Reviewed by Gyuyoung Kim.

Add support for PlatformWebView::simulateRightClick() and enable
WebKit2 API test HitTestResultNodeHandle.

* TestWebKitAPI/PlatformEfl.cmake:
* TestWebKitAPI/efl/PlatformWebView.cpp:
(TestWebKitAPI::PlatformWebView::simulateRightClick):
(TestWebKitAPI):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (136216 => 136217)


--- trunk/Tools/ChangeLog	2012-11-30 09:13:00 UTC (rev 136216)
+++ trunk/Tools/ChangeLog	2012-11-30 09:45:52 UTC (rev 136217)
@@ -1,3 +1,18 @@
+2012-11-30  Sudarsana Nagineni  <[email protected]>
+
+        [EFL][WK2] Add support for PlatformWebView::simulateRightClick() in TestWebKitAPI
+        https://bugs.webkit.org/show_bug.cgi?id=103634
+
+        Reviewed by Gyuyoung Kim.
+
+        Add support for PlatformWebView::simulateRightClick() and enable
+        WebKit2 API test HitTestResultNodeHandle.
+
+        * TestWebKitAPI/PlatformEfl.cmake:
+        * TestWebKitAPI/efl/PlatformWebView.cpp:
+        (TestWebKitAPI::PlatformWebView::simulateRightClick):
+        (TestWebKitAPI):
+
 2012-11-30  Mihai Maerean  <[email protected]>
 
         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled

Modified: trunk/Tools/TestWebKitAPI/PlatformEfl.cmake (136216 => 136217)


--- trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-11-30 09:13:00 UTC (rev 136216)
+++ trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-11-30 09:45:52 UTC (rev 136217)
@@ -55,6 +55,7 @@
     FrameMIMETypeHTML
     FrameMIMETypePNG
     GetInjectedBundleInitializationUserDataCallback
+    HitTestResultNodeHandle
     InjectedBundleBasic
     InjectedBundleInitializationUserDataCallbackWins
     LoadAlternateHTMLStringWithNonDirectoryURL
@@ -90,7 +91,6 @@
 
 # Tests disabled because of missing features on the test harness:
 #
-#   HitTestResultNodeHandle
 #   ResponsivenessTimerDoesntFireEarly
 #   SpacebarScrolling
 #

Modified: trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp (136216 => 136217)


--- trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-11-30 09:13:00 UTC (rev 136216)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-11-30 09:45:52 UTC (rev 136217)
@@ -102,4 +102,13 @@
     evas_event_feed_mouse_move(evas, x, y, 0, 0);
 }
 
+void PlatformWebView::simulateRightClick(unsigned x, unsigned y)
+{
+    Evas* evas = ecore_evas_get(m_window);
+    evas_object_show(m_view);
+    evas_event_feed_mouse_move(evas, x, y, 0, 0);
+    evas_event_feed_mouse_down(evas, 3, EVAS_BUTTON_NONE, 0, 0);
+    evas_event_feed_mouse_up(evas, 3, EVAS_BUTTON_NONE, 0, 0);
+}
+
 } // namespace TestWebKitAPI
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to