Title: [135600] trunk/Tools
- Revision
- 135600
- Author
- [email protected]
- Date
- 2012-11-23 05:38:04 -0800 (Fri, 23 Nov 2012)
Log Message
[EFL][WK2] Add support for PlatformWebView::simulateSpacebarKeyPress() in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=103123
Patch by Sudarsana Nagineni <[email protected]> on 2012-11-23
Reviewed by Kenneth Rohde Christiansen.
Add support for PlatformWebView::simulateSpacebarKeyPress() and enable
WebKit2 API test ResponsivenessTimerDoesntFireEarly.
* TestWebKitAPI/PlatformEfl.cmake: Enable ResponsivenessTimerDoesntFireEarly
test.
* TestWebKitAPI/efl/PlatformUtilities.cpp:
(TestWebKitAPI::Util::sleep): Use usleep() instead of sleep since the
test case is passing 0.5 seconds to sleep.
* TestWebKitAPI/efl/PlatformWebView.cpp:
(TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress): Implemented.
(TestWebKitAPI):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (135599 => 135600)
--- trunk/Tools/ChangeLog 2012-11-23 13:25:18 UTC (rev 135599)
+++ trunk/Tools/ChangeLog 2012-11-23 13:38:04 UTC (rev 135600)
@@ -1,3 +1,22 @@
+2012-11-23 Sudarsana Nagineni <[email protected]>
+
+ [EFL][WK2] Add support for PlatformWebView::simulateSpacebarKeyPress() in TestWebKitAPI
+ https://bugs.webkit.org/show_bug.cgi?id=103123
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Add support for PlatformWebView::simulateSpacebarKeyPress() and enable
+ WebKit2 API test ResponsivenessTimerDoesntFireEarly.
+
+ * TestWebKitAPI/PlatformEfl.cmake: Enable ResponsivenessTimerDoesntFireEarly
+ test.
+ * TestWebKitAPI/efl/PlatformUtilities.cpp:
+ (TestWebKitAPI::Util::sleep): Use usleep() instead of sleep since the
+ test case is passing 0.5 seconds to sleep.
+ * TestWebKitAPI/efl/PlatformWebView.cpp:
+ (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress): Implemented.
+ (TestWebKitAPI):
+
2012-11-23 Wojciech Bielawski <[email protected]>
[WK2][WKTR] WebKitTestRunner needs eventSender.contextClick()
Modified: trunk/Tools/TestWebKitAPI/PlatformEfl.cmake (135599 => 135600)
--- trunk/Tools/TestWebKitAPI/PlatformEfl.cmake 2012-11-23 13:25:18 UTC (rev 135599)
+++ trunk/Tools/TestWebKitAPI/PlatformEfl.cmake 2012-11-23 13:38:04 UTC (rev 135600)
@@ -66,6 +66,7 @@
ParentFrame
PreventEmptyUserAgent
PrivateBrowsingPushStateNoHistoryCallback
+ ResponsivenessTimerDoesntFireEarly
WKConnection
WKPreferences
WKString
@@ -91,7 +92,6 @@
#
# HitTestResultNodeHandle
# MouseMoveAfterCrash
-# ResponsivenessTimerDoesntFireEarly
# SpacebarScrolling
#
# Flaky test, fails on Release but passes on Debug:
Modified: trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp (135599 => 135600)
--- trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp 2012-11-23 13:25:18 UTC (rev 135599)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp 2012-11-23 13:38:04 UTC (rev 135600)
@@ -42,7 +42,7 @@
void sleep(double seconds)
{
- sleep(seconds);
+ usleep(seconds * 1000000);
}
WKURLRef createURLForResource(const char* resource, const char* extension)
Modified: trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp (135599 => 135600)
--- trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp 2012-11-23 13:25:18 UTC (rev 135599)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp 2012-11-23 13:38:04 UTC (rev 135600)
@@ -80,4 +80,12 @@
return WKViewGetPage(toAPI(m_view));
}
+void PlatformWebView::simulateSpacebarKeyPress()
+{
+ Evas* evas = ecore_evas_get(m_window);
+ evas_object_focus_set(m_view, true);
+ evas_event_feed_key_down(evas, "space", "space", " ", 0, 0, 0);
+ evas_event_feed_key_up(evas, "space", "space", " ", 0, 1, 0);
+}
+
} // namespace TestWebKitAPI
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes