Title: [212290] trunk/Tools
Revision
212290
Author
[email protected]
Date
2017-02-14 05:03:20 -0800 (Tue, 14 Feb 2017)

Log Message

REGRESSION(r212192): [GTK] Broke downloads API tests
https://bugs.webkit.org/show_bug.cgi?id=168193

Unreviewed. Update test expectations after r212192.

The suggested filename now includes a file extensions if the MIME type is known.

* TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
(testDownloadRemoteFile):
(testDownloadMIMEType):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (212289 => 212290)


--- trunk/Tools/ChangeLog	2017-02-14 12:56:15 UTC (rev 212289)
+++ trunk/Tools/ChangeLog	2017-02-14 13:03:20 UTC (rev 212290)
@@ -1,3 +1,16 @@
+2017-02-14  Carlos Garcia Campos  <[email protected]>
+
+        REGRESSION(r212192): [GTK] Broke downloads API tests
+        https://bugs.webkit.org/show_bug.cgi?id=168193
+
+        Unreviewed. Update test expectations after r212192.
+
+        The suggested filename now includes a file extensions if the MIME type is known.
+
+        * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
+        (testDownloadRemoteFile):
+        (testDownloadMIMEType):
+
 2017-02-14  Commit Queue  <[email protected]>
 
         Unreviewed, rolling out r212237.

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp (212289 => 212290)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp	2017-02-14 12:56:15 UTC (rev 212289)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp	2017-02-14 13:03:20 UTC (rev 212290)
@@ -457,7 +457,8 @@
 
     g_assert(webkit_download_get_destination(download.get()));
     g_assert_cmpfloat(webkit_download_get_estimated_progress(download.get()), ==, 1);
-    test->checkDestinationAndDeleteFile(download.get(), kServerSuggestedFilename);
+    GUniquePtr<char> expectedFilename(g_strdup_printf("%s.pdf", kServerSuggestedFilename));
+    test->checkDestinationAndDeleteFile(download.get(), expectedFilename.get());
 }
 
 static void testDownloadRemoteFileError(DownloadErrorTest* test, gconstpointer)
@@ -666,7 +667,8 @@
 
     g_assert(webkit_download_get_destination(download.get()));
     g_assert_cmpfloat(webkit_download_get_estimated_progress(download.get()), ==, 1);
-    test->checkDestinationAndDeleteFile(download.get(), kServerSuggestedFilename);
+    GUniquePtr<char> expectedFilename(g_strdup_printf("%s.pdf", kServerSuggestedFilename));
+    test->checkDestinationAndDeleteFile(download.get(), expectedFilename.get());
 }
 
 static gboolean contextMenuCallback(WebKitWebView* webView, WebKitContextMenu* contextMenu, GdkEvent*, WebKitHitTestResult* hitTestResult, WebViewDownloadTest* test)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to