https://bugs.webkit.org/show_bug.cgi?id=125684
Reviewed by Daniel Bates.
.:
* Source/PlatformGTK.cmake: Added.
Source/WebKit/gtk:
* tests/CMakeLists.txt: Added.
* tests/testapplicationcache.c: Use the WTF config.h instead of including the autotools configuration directly.
* tests/testatk.c: Ditto.
* tests/testatkroles.c: Ditto.
* tests/testcontextmenu.c: Ditto.
* tests/testcopyandpaste.c: Ditto.
* tests/testdomdocument.c: Ditto.
* tests/testdomdomwindow.c: Ditto.
* tests/testdomnode.c: Ditto.
* tests/testdownload.c: Ditto.
* tests/testfavicondatabase.c: Ditto.
* tests/testglobals.c: Ditto.
* tests/testhittestresult.c: Ditto.
* tests/testhttpbackend.c: Ditto.
* tests/testkeyevents.c: Ditto.
* tests/testloading.c: Ditto.
* tests/testmimehandling.c: Ditto.
* tests/testnetworkrequest.c: Ditto.
* tests/testnetworkresponse.c: Ditto.
* tests/testwebbackforwardlist.c: Ditto.
* tests/testwebdatasource.c: Ditto.
* tests/testwebframe.c: Ditto.
* tests/testwebhistoryitem.c: Ditto.
* tests/testwebinspector.c: Ditto.
* tests/testwebplugindatabase.c: Ditto.
* tests/testwebresource.c: Ditto.
* tests/testwebsettings.c: Ditto.
* tests/testwebview.c: Ditto.
* tests/testwindow.c: Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161015
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-12-23 Martin Robinson <mrobinson@igalia.com>
+
+ [GTK] [CMake] Build the WebKit1 GObject API tests
+ https://bugs.webkit.org/show_bug.cgi?id=125684
+
+ Reviewed by Daniel Bates.
+
+ * Source/PlatformGTK.cmake: Added.
+
2013-12-22 Martin Robinson <mrobinson@igalia.com>
https://bugs.webkit.org/show_bug.cgi?id=125511
--- /dev/null
+if (ENABLE_WEBKIT)
+ add_subdirectory(${WEBKIT_DIR}/gtk/tests)
+endif ()
+2013-12-23 Martin Robinson <mrobinson@igalia.com>
+
+ [GTK] [CMake] Build the WebKit1 GObject API tests
+ https://bugs.webkit.org/show_bug.cgi?id=125684
+
+ Reviewed by Daniel Bates.
+
+ * tests/CMakeLists.txt: Added.
+ * tests/testapplicationcache.c: Use the WTF config.h instead of including the autotools configuration directly.
+ * tests/testatk.c: Ditto.
+ * tests/testatkroles.c: Ditto.
+ * tests/testcontextmenu.c: Ditto.
+ * tests/testcopyandpaste.c: Ditto.
+ * tests/testdomdocument.c: Ditto.
+ * tests/testdomdomwindow.c: Ditto.
+ * tests/testdomnode.c: Ditto.
+ * tests/testdownload.c: Ditto.
+ * tests/testfavicondatabase.c: Ditto.
+ * tests/testglobals.c: Ditto.
+ * tests/testhittestresult.c: Ditto.
+ * tests/testhttpbackend.c: Ditto.
+ * tests/testkeyevents.c: Ditto.
+ * tests/testloading.c: Ditto.
+ * tests/testmimehandling.c: Ditto.
+ * tests/testnetworkrequest.c: Ditto.
+ * tests/testnetworkresponse.c: Ditto.
+ * tests/testwebbackforwardlist.c: Ditto.
+ * tests/testwebdatasource.c: Ditto.
+ * tests/testwebframe.c: Ditto.
+ * tests/testwebhistoryitem.c: Ditto.
+ * tests/testwebinspector.c: Ditto.
+ * tests/testwebplugindatabase.c: Ditto.
+ * tests/testwebresource.c: Ditto.
+ * tests/testwebsettings.c: Ditto.
+ * tests/testwebview.c: Ditto.
+ * tests/testwindow.c: Ditto.
+
2013-12-20 Enrique Ocaña González <eocanha@igalia.com>
[GTK] The fullscreen API should be enabled by default
--- /dev/null
+set(TEST_BINARY_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit2GObjectAPITests)
+
+add_definitions(-DTEST_PLUGIN_DIR="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/Source
+ ${CMAKE_SOURCE_DIR}/Source/JavaScriptCore/ForwardingHeaders
+ ${CMAKE_SOURCE_DIR}/Source/WebKit/gtk
+ ${CMAKE_SOURCE_DIR}/Source/WebCore/platform/gtk
+ ${CMAKE_SOURCE_DIR}/Source/WebCore/platform
+ ${CMAKE_SOURCE_DIR}/Source/WTF
+ ${DERIVED_SOURCES_DIR}
+ ${DERIVED_SOURCES_DIR}/webkit
+ ${GLIB_INCLUDE_DIRS}
+ ${GTK3_INCLUDE_DIRS}
+ ${LIBSOUP_INCLUDE_DIRS}
+)
+
+macro(ADD_WK1_TEST test_name)
+ add_executable(${test_name} ${ARGN})
+ target_link_libraries(${test_name}
+ JavaScriptCore
+ WebKit
+ ${GLIB_LIBRARIES}
+ ${GTK3_LIBRARIES}
+ ${LIBSOUP_LIBRARIES}
+ )
+ set_target_properties(${test_name} PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY ${TEST_BINARY_DIR}/WebKit1GObjectAPITests
+ )
+endmacro()
+
+ADD_WK1_TEST(testapplicationcache testapplicationcache.c)
+ADD_WK1_TEST(testatkroles testatkroles.c)
+ADD_WK1_TEST(testatk testatk.c)
+ADD_WK1_TEST(testcontextmenu testcontextmenu.c)
+ADD_WK1_TEST(testcopyandpaste testcopyandpaste.c ${WEBCORE_DIR}/platform/gtk/GtkVersioning.c)
+ADD_WK1_TEST(testdomdocument testdomdocument.c)
+ADD_WK1_TEST(testdomdomwindow testdomdomwindow.c)
+ADD_WK1_TEST(testdomnode testdomnode.c)
+ADD_WK1_TEST(testdownload testdownload.c)
+ADD_WK1_TEST(testfavicondatabase testfavicondatabase.c test_utils.c)
+ADD_WK1_TEST(testglobals testglobals.c)
+ADD_WK1_TEST(testhittestresult testhittestresult.c)
+ADD_WK1_TEST(testhttpbackend testhttpbackend.c)
+ADD_WK1_TEST(testkeyevents testkeyevents.c)
+ADD_WK1_TEST(testloading testloading.c)
+ADD_WK1_TEST(testmimehandling testmimehandling.c test_utils.c)
+ADD_WK1_TEST(testnetworkrequest testnetworkrequest.c)
+ADD_WK1_TEST(testnetworkresponse testnetworkresponse.c)
+ADD_WK1_TEST(testwebbackforwardlist testwebbackforwardlist.c)
+ADD_WK1_TEST(testwebdatasource testwebdatasource.c)
+ADD_WK1_TEST(testwebframe testwebframe.c)
+ADD_WK1_TEST(testwebhistoryitem testwebhistoryitem.c)
+ADD_WK1_TEST(testwebinspector testwebinspector.c test_utils.c)
+ADD_WK1_TEST(testwebplugindatabase testwebplugindatabase.c)
+ADD_WK1_TEST(testwebresource testwebresource.c)
+ADD_WK1_TEST(testwebsettings testwebsettings.c)
+ADD_WK1_TEST(testwebview testwebview.c test_utils.c)
+ADD_WK1_TEST(testwindow testwindow.c)
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <glib/gprintf.h>
#include <gtk/gtk.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <webkit/webkit.h>
typedef struct {
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <string.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib/gstdio.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <glib/gstdio.h>
#include <gtk/gtk.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <gtk/gtk.h>
#include <libsoup/soup.h>
#include <webkit/webkit.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib/gstdio.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <string.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <gtk/gtk.h>
#include <libsoup/soup.h>
#include <string.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <glib.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <string.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <libsoup/soup.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <webkit/webkit.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include "test_utils.h"
#include <errno.h>
* Boston, MA 02110-1301, USA.
*/
-#include "autotoolsconfig.h"
+#include "config.h"
#include <gtk/gtk.h>
#include <webkit/webkit.h>