[EFL][WK2] Add support for PlatformWebView::simulateMouseMove() in TestWebKitAPI
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformEfl.cmake
1 ADD_CUSTOM_TARGET(forwarding-headersEflForTestWebKitAPI
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
3     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
4 )
5 SET(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersEflForTestWebKitAPI)
6
7 ADD_CUSTOM_TARGET(forwarding-headersSoupForTestWebKitAPI
8     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
9     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
10 )
11 SET(ForwardingNetworkHeadersForTestWebKitAPI_NAME forwarding-headersSoupForTestWebKitAPI)
12
13 INCLUDE_DIRECTORIES(
14     ${WEBKIT2_DIR}/UIProcess/API/C/soup
15     ${WEBKIT2_DIR}/UIProcess/API/C/efl
16     ${WEBKIT2_DIR}/UIProcess/API/efl
17     ${ECORE_INCLUDE_DIRS}
18     ${EINA_INCLUDE_DIRS}
19     ${EVAS_INCLUDE_DIRS}
20     ${GLIB_INCLUDE_DIRS}
21     ${LIBSOUP_INCLUDE_DIRS}
22 )
23
24 SET(test_main_SOURCES
25     ${TESTWEBKITAPI_DIR}/efl/main.cpp
26 )
27
28 SET(bundle_harness_SOURCES
29     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
30     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
31 )
32
33 SET(webkit2_api_harness_SOURCES
34     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
35     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
36 )
37
38 # The list below works like a test expectation. Tests in the
39 # test_webkit2_api_BINARIES list are added to the test runner and
40 # tried on the bots on every build. Tests in test_webkit2_api_fail_BINARIES
41 # are compiled and suffixed with fail and skipped from the test runner.
42 #
43 # Make sure that the tests are passing on both Debug and
44 # Release builds before adding it to test_webkit2_api_BINARIES.
45
46 SET(test_webkit2_api_BINARIES
47     AboutBlankLoad
48     CookieManager
49     DOMWindowExtensionNoCache
50     DocumentStartUserScriptAlertCrash
51     EvaluateJavaScript
52     FailedLoad
53     Find
54     ForceRepaint
55     FrameMIMETypeHTML
56     FrameMIMETypePNG
57     GetInjectedBundleInitializationUserDataCallback
58     InjectedBundleBasic
59     InjectedBundleInitializationUserDataCallbackWins
60     LoadAlternateHTMLStringWithNonDirectoryURL
61     LoadCanceledNoServerRedirectCallback
62     MouseMoveAfterCrash
63     NewFirstVisuallyNonEmptyLayout
64     NewFirstVisuallyNonEmptyLayoutFails
65     PageLoadBasic
66     PageLoadDidChangeLocationWithinPageForFrame
67     ParentFrame
68     PreventEmptyUserAgent
69     PrivateBrowsingPushStateNoHistoryCallback
70     WKConnection
71     WKPreferences
72     WKString
73     WKStringJSString
74     WKURL
75     WillSendSubmitEvent
76 )
77
78 SET(test_webkit2_api_fail_BINARIES
79     CanHandleRequest
80     DOMWindowExtensionBasic
81     DownloadDecideDestinationCrash
82     NewFirstVisuallyNonEmptyLayoutForImages
83     NewFirstVisuallyNonEmptyLayoutFrames
84     RestoreSessionStateContainingFormData
85     ShouldGoToBackForwardListItem
86     WKPageGetScaleFactorNotZero
87 )
88
89 ADD_DEFINITIONS(-DTHEME_DIR="${THEME_BINARY_DIR}")
90
91 # Tests disabled because of missing features on the test harness:
92 #
93 #   HitTestResultNodeHandle
94 #   ResponsivenessTimerDoesntFireEarly
95 #   SpacebarScrolling
96 #
97 # Flaky test, fails on Release but passes on Debug:
98 #
99 #   UserMessage