aboutsummaryrefslogtreecommitdiff
path: root/tests/test-actions.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-21 14:32:39 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:44:12 +0200
commitd1935f872fe600f224aa89eff3ab70a48d52c16d (patch)
treec29a046d47f09fc434b08e3c9f0aedb4cc700c65 /tests/test-actions.cpp
parentbf7746273c111b004c56a0868bb1702d96ecb67f (diff)
downloadayatana-indicator-datetime-d1935f872fe600f224aa89eff3ab70a48d52c16d.tar.gz
ayatana-indicator-datetime-d1935f872fe600f224aa89eff3ab70a48d52c16d.tar.bz2
ayatana-indicator-datetime-d1935f872fe600f224aa89eff3ab70a48d52c16d.zip
Make sure that the ocurrence time is used to build the url to launch external application.
Diffstat (limited to 'tests/test-actions.cpp')
-rw-r--r--tests/test-actions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-actions.cpp b/tests/test-actions.cpp
index aa608a8..96da7cc 100644
--- a/tests/test-actions.cpp
+++ b/tests/test-actions.cpp
@@ -116,7 +116,7 @@ protected:
m_mock_state->mock_range_planner->appointments().set(appointments);
// activate the action
- auto v = g_variant_new_string(appointments[0].uid.c_str());
+ auto v = g_variant_new("(sx)", appointments[0].uid.c_str(), 0);
g_action_group_activate_action(action_group, action_name, v);
// test the results
@@ -134,7 +134,7 @@ protected:
EXPECT_TRUE(m_mock_actions->history().empty());
// activate the action
- v = g_variant_new_string("this-uid-is-not-one-that-we-have");
+ v = g_variant_new("(sx)", "this-uid-is-not-one-that-we-have", 0);
g_action_group_activate_action(action_group, action_name, v);
// test the results