[glib/wip/mimeinfo: 2/4] mimeapps test: fix defaults vs. recommended



commit a5a14aeb4ae23bf2b39c2daf4b4a965c5e567cdd
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Apr 9 19:14:37 2014 -0400

    mimeapps test: fix defaults vs. recommended
    
    The desktop file for myapp3 didn't declare support for image/png, but
    the testcase expects it to be recommended on the basis of it being the
    default app according to defaults.list.
    
    This will not work in the future -- we will only list apps that actually
    support the filetype in question, unless they've been explicitly added
    as associations.

 gio/tests/mimeapps.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/mimeapps.c b/gio/tests/mimeapps.c
index 35488e5..2f23dfc 100644
--- a/gio/tests/mimeapps.c
+++ b/gio/tests/mimeapps.c
@@ -55,7 +55,8 @@ const gchar *myapp3_data =
   "Version=1.0\n"
   "Type=Application\n"
   "Exec=sleep 1\n"
-  "Name=my app 3\n";
+  "Name=my app 3\n"
+  "MimeType=image/png;";
 
 const gchar *myapp4_data =
   "[Desktop Entry]\n"
@@ -91,7 +92,8 @@ const gchar *defaults_data =
 
 const gchar *mimecache_data =
   "[MIME Cache]\n"
-  "image/bmp=myapp4.desktop;myapp5.desktop;\n";
+  "image/bmp=myapp4.desktop;myapp5.desktop;\n"
+  "image/png=myapp3.desktop;\n";
 
 /* Set up XDG_DATA_HOME and XDG_DATA_DIRS.
  * XDG_DATA_DIRS/applications will contain defaults.list


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