Title: [135489] trunk/Tools
Revision
135489
Author
[email protected]
Date
2012-11-22 00:30:17 -0800 (Thu, 22 Nov 2012)

Log Message

[EFL][WK2] Enable WKPreferences and AboutBlankLoad API tests
https://bugs.webkit.org/show_bug.cgi?id=102926

Patch by Sudarsana Nagineni <[email protected]> on 2012-11-22
Reviewed by Kenneth Rohde Christiansen.

Add missing bits needed by WKPreferences and AboutBlankLoad API
tests in the test harness and enable these tests on EFL port.

* TestWebKitAPI/PlatformEfl.cmake:
* TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/efl/PlatformUtilities.cpp:
(TestWebKitAPI::Util::MIMETypeForWKURLResponse):
(Util):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (135488 => 135489)


--- trunk/Tools/ChangeLog	2012-11-22 08:13:10 UTC (rev 135488)
+++ trunk/Tools/ChangeLog	2012-11-22 08:30:17 UTC (rev 135489)
@@ -1,3 +1,20 @@
+2012-11-22  Sudarsana Nagineni  <[email protected]>
+
+        [EFL][WK2] Enable WKPreferences and AboutBlankLoad API tests
+        https://bugs.webkit.org/show_bug.cgi?id=102926
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Add missing bits needed by WKPreferences and AboutBlankLoad API
+        tests in the test harness and enable these tests on EFL port.
+
+        * TestWebKitAPI/PlatformEfl.cmake:
+        * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/efl/PlatformUtilities.cpp:
+        (TestWebKitAPI::Util::MIMETypeForWKURLResponse):
+        (Util):
+
 2012-11-21  Zan Dobersek  <[email protected]>
 
         [GTK][WTR] Implement AccessibilityUIElement::stringValue

Modified: trunk/Tools/TestWebKitAPI/PlatformEfl.cmake (135488 => 135489)


--- trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-11-22 08:13:10 UTC (rev 135488)
+++ trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-11-22 08:30:17 UTC (rev 135489)
@@ -44,6 +44,7 @@
 # Release builds before adding it to test_webkit2_api_BINARIES.
 
 SET(test_webkit2_api_BINARIES
+    AboutBlankLoad
     CookieManager
     DOMWindowExtensionNoCache
     DocumentStartUserScriptAlertCrash
@@ -66,6 +67,7 @@
     PreventEmptyUserAgent
     PrivateBrowsingPushStateNoHistoryCallback
     WKConnection
+    WKPreferences
     WKString
     WKStringJSString
     WKURL
@@ -87,12 +89,10 @@
 
 # Tests disabled because of missing features on the test harness:
 #
-#   AboutBlankLoad
 #   HitTestResultNodeHandle
 #   MouseMoveAfterCrash
 #   ResponsivenessTimerDoesntFireEarly
 #   SpacebarScrolling
-#   WKPreferences
 #
 # Flaky test, fails on Release but passes on Debug:
 #

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp (135488 => 135489)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp	2012-11-22 08:13:10 UTC (rev 135488)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp	2012-11-22 08:30:17 UTC (rev 135489)
@@ -57,7 +57,7 @@
     static const char* expectedCursiveFontFamily = "Apple Chancery";
     static const char* expectedFantasyFontFamily = "Papyrus";
     static const char* expectedPictographFontFamily = "Apple Color Emoji";
-#elif PLATFORM(GTK)
+#elif PLATFORM(GTK) || PLATFORM(EFL)
     static const char* expectedStandardFontFamily = "Times";
     static const char* expectedFixedFontFamily = "Courier New";
     static const char* expectedSerifFontFamily = "Times";

Modified: trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp (135488 => 135489)


--- trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp	2012-11-22 08:13:10 UTC (rev 135488)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformUtilities.cpp	2012-11-22 08:30:17 UTC (rev 135489)
@@ -64,6 +64,11 @@
     return WKURLCreateWithUTF8CString("file:///does-not-exist.html");
 }
 
+WKRetainPtr<WKStringRef> MIMETypeForWKURLResponse(WKURLResponseRef wkResponse)
+{
+    return adoptWK(WKURLResponseCopyMIMEType(wkResponse));
+}
+
 } // namespace Util
 
 } // namespace TestWebKitAPI
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to