Changeset 168834 in webkit


Ignore:
Timestamp:
May 14, 2014 5:48:45 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(CMAKE): [GTK] InputMethodFilter unit test is not built
https://bugs.webkit.org/show_bug.cgi?id=132686

Reviewed by Philippe Normand.

Bring back InputMethodFilter test to the build and compile it into
a single binary TestWebCore with the other WebCore tests. Also
move it from TestWebKitAPI/gtk/ to TestWebKitAPI/Tests/WebCore/gtk/.

  • Scripts/run-gtk-tests:

(TestRunner): Remove WebCoreGtk from the list of test directories.

  • TestWebKitAPI/PlatformGTK.cmake:
  • TestWebKitAPI/Tests/WebCore/gtk/InputMethodFilter.cpp: Renamed from Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp.
Location:
trunk/Tools
Files:
1 added
1 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r168833 r168834  
     12014-05-14  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(CMAKE): [GTK] InputMethodFilter unit test is not built
     4        https://bugs.webkit.org/show_bug.cgi?id=132686
     5
     6        Reviewed by Philippe Normand.
     7
     8        Bring back InputMethodFilter test to the build and compile it into
     9        a single binary TestWebCore with the other WebCore tests. Also
     10        move it from TestWebKitAPI/gtk/ to TestWebKitAPI/Tests/WebCore/gtk/.
     11
     12        * Scripts/run-gtk-tests:
     13        (TestRunner): Remove WebCoreGtk from the list of test directories.
     14        * TestWebKitAPI/PlatformGTK.cmake:
     15        * TestWebKitAPI/Tests/WebCore/gtk/InputMethodFilter.cpp: Renamed from Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp.
     16
    1172014-05-14  Zsolt Borbely  <zsborbely.u-szeged@partner.samsung.com>
    218
  • trunk/Tools/Scripts/run-gtk-tests

    r167769 r168834  
    5959
    6060class TestRunner:
    61     TEST_DIRS = [ "WebKit2Gtk", "WebKit2", "JavaScriptCore", "WTF", "WebCore",  "WebCoreGtk" ]
     61    TEST_DIRS = [ "WebKit2Gtk", "WebKit2", "JavaScriptCore", "WTF", "WebCore" ]
    6262
    6363    SKIPPED = [
  • trunk/Tools/TestWebKitAPI/PlatformGTK.cmake

    r168615 r168834  
    112112set_target_properties(TestWebKit2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebKit2)
    113113
    114 # The list below works like a test expectation. Tests in the
    115 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
    116 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
    117 # are compiled and suffixed with fail and skipped from the test runner.
    118 #
    119 # Make sure that the tests are passing on both Debug and
    120 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
    121 
    122 set(test_webcore_BINARIES
    123     LayoutUnit
    124     URL
     114set(TestWebCoreGtk_SOURCES
     115    ${WEBCORE_DIR}/platform/graphics/IntPoint.cpp
     116    ${WEBCORE_DIR}/platform/graphics/IntRect.cpp
     117    ${WEBCORE_DIR}/platform/graphics/IntSize.cpp
     118    ${WEBCORE_DIR}/platform/graphics/cairo/IntRectCairo.cpp
     119    ${WEBCORE_DIR}/platform/graphics/gtk/IntRectGtk.cpp
     120    ${WEBCORE_DIR}/platform/gtk/GtkInputMethodFilter.cpp
     121    ${TESTWEBKITAPI_DIR}/Tests/WebCore/gtk/InputMethodFilter.cpp
    125122)
    126123
     124add_executable(TestWebCore
     125    ${test_main_SOURCES}
     126    ${TestWebCoreGtk_SOURCES}
     127    ${TESTWEBKITAPI_DIR}/TestsController.cpp
     128    ${TESTWEBKITAPI_DIR}/Tests/WebCore/LayoutUnit.cpp
     129    ${TESTWEBKITAPI_DIR}/Tests/WebCore/URL.cpp
     130)
     131
     132target_link_libraries(TestWebCore ${test_webcore_LIBRARIES})
     133add_test(TestWebCore ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebCore/TestWebCore)
     134set_tests_properties(TestWebCore PROPERTIES TIMEOUT 60)
     135set_target_properties(TestWebCore PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebCore)
  • trunk/Tools/TestWebKitAPI/Tests/WebCore/gtk/InputMethodFilter.cpp

    r168833 r168834  
    2626#include "config.h"
    2727
    28 #include "GtkInputMethodFilter.h"
    2928#include "WTFStringUtilities.h"
     29#include <WebCore/GtkInputMethodFilter.h>
    3030#include <gdk/gdkkeysyms.h>
    3131#include <gtk/gtk.h>
     
    5252    Vector<String>& events() { return m_events; }
    5353
    54     void sendKeyEventToFilter(unsigned int gdkKeyValue, GdkEventType type, unsigned int modifiers = 0)
     54    void sendKeyEventToFilter(unsigned gdkKeyValue, GdkEventType type, unsigned modifiers = 0)
    5555    {
    5656        GdkEvent* event = gdk_event_new(type);
     
    7474    }
    7575
    76     void sendPressAndReleaseKeyEventPairToFilter(unsigned int gdkKeyValue, unsigned int modifiers = 0)
     76    void sendPressAndReleaseKeyEventPairToFilter(unsigned gdkKeyValue, unsigned modifiers = 0)
    7777    {
    7878        sendKeyEventToFilter(gdkKeyValue, GDK_KEY_PRESS, modifiers);
Note: See TracChangeset for help on using the changeset viewer.