summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-10-21 20:02:35 +0200
committerSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-10-21 20:02:35 +0200
commit6c628682f5cf6fa056d22e96fd59291c8380de47 (patch)
treea0450a1e8cf119925c62a8d687507f3c01c469b5 /test
parent1cdfda58bcc60f5d99de140cf9651e9ee2a660ee (diff)
downloadzeitgeist-6c628682f5cf6fa056d22e96fd59291c8380de47.tar.gz
Implement Event.set_actor_from_info
Diffstat (limited to 'test')
-rw-r--r--test/direct/Makefile.am3
-rw-r--r--test/direct/event-test.vala3
-rw-r--r--test/direct/test.desktop10
3 files changed, 12 insertions, 4 deletions
diff --git a/test/direct/Makefile.am b/test/direct/Makefile.am
index efd47bf7..63e72e77 100644
--- a/test/direct/Makefile.am
+++ b/test/direct/Makefile.am
@@ -1,6 +1,7 @@
VALAFLAGS = \
- --pkg gio-2.0 \
--target-glib=2.26 \
+ --pkg gio-2.0 \
+ --pkg gio-unix-2.0 \
--pkg sqlite3 \
--pkg posix \
--pkg gmodule-2.0 \
diff --git a/test/direct/event-test.vala b/test/direct/event-test.vala
index 1866aeb6..20f187fa 100644
--- a/test/direct/event-test.vala
+++ b/test/direct/event-test.vala
@@ -86,15 +86,12 @@ void create_full_test ()
void actor_from_app_info_test ()
{
- /*
- FIXME: zg2 has no DesktopAppInfo API atm
var appinfo = new DesktopAppInfo.from_filename (test_dir () + "/test.desktop");
assert (appinfo is AppInfo);
var ev = new Event ();
ev.set_actor_from_info (appinfo);
assert_cmpstr (ev.actor, OperatorType.EQUAL, "application://test.desktop");
- */
}
void from_variant_test ()
diff --git a/test/direct/test.desktop b/test/direct/test.desktop
new file mode 100644
index 00000000..b8180be6
--- /dev/null
+++ b/test/direct/test.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=test
+GenericName=Test Desktop File
+Comment=This is just a test file
+Exec=echo %U
+Terminal=false
+Type=Application
+StartupNotify=false
+MimeType=text/plain;
+Icon=accessories-text-editor