[gtk/image-loading: 15/15] fixup contentserializder test



commit 63b7f86043df514f7ca4a31506bf9a2510b99db4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 12 21:50:35 2021 -0400

    fixup contentserializder test

 testsuite/gdk/contentserializer.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/testsuite/gdk/contentserializer.c b/testsuite/gdk/contentserializer.c
index c0befad4ce..2d33627d02 100644
--- a/testsuite/gdk/contentserializer.c
+++ b/testsuite/gdk/contentserializer.c
@@ -230,18 +230,12 @@ test_content_texture (gconstpointer data)
 {
   const char *mimetype = data;
   GValue value = G_VALUE_INIT;
-  const char *filename;
   char *path;
   GFile *file;
   GdkTexture *texture;
   GError *error = NULL;
 
-  if (strcmp (mimetype, "image/jpeg") == 0)
-    filename = "image.jpeg";
-  else
-    filename = "image.png";
-
-  path = g_test_build_filename (G_TEST_DIST, "clipboard-data", filename, NULL);
+  path = g_test_build_filename (G_TEST_DIST, "image-data", "image.png", NULL);
   file = g_file_new_for_path (path);
   texture = gdk_texture_new_from_file (file, &error);
   g_assert_no_error (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]