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.

https://bugzilla.gnome.org/show_bug.cgi?id=728040
This commit is contained in:
Ryan Lortie 2014-04-09 19:14:37 -04:00
parent 84e9829fee
commit 41761a134d

View File

@ -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