~indicator-applet-developers/url-dispatcher/trunk.13.10

« back to all changes in this revision

Viewing changes to tests/dispatcher-test.cc

  • Committer: Tarmac
  • Author(s): Ted Gould
  • Date: 2013-09-27 20:58:55 UTC
  • mfrom: (28.3.4 cal-fix)
  • Revision ID: tarmac-20130927205855-sinlhse5nja2mc5g
Adding a calendar URL. Fixes: https://bugs.launchpad.net/bugs/1231136.

Approved by PS Jenkins bot, Charles Kerr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
        return;
87
87
}
 
88
 
 
89
TEST_F(DispatcherTest, CalendarTest)
 
90
{
 
91
        /* Base Calendar */
 
92
        dispatch_url("calendar:///?starttime=196311221830Z");
 
93
        ASSERT_STREQ("calendar-app", upstart_app_launch_mock_get_last_app_id());
 
94
        upstart_app_launch_mock_clear_last_app_id();
 
95
 
 
96
        /* Two Slash Calendar */
 
97
        dispatch_url("calendar://?starttime=196311221830Z");
 
98
        ASSERT_TRUE(NULL == upstart_app_launch_mock_get_last_app_id());
 
99
        upstart_app_launch_mock_clear_last_app_id();
 
100
 
 
101
        return;
 
102
}