~charlesk/indicator-datetime/lp-1489037-change-default-alarm-sound-15.04

« back to all changes in this revision

Viewing changes to tests/test-live-actions.cpp

Improve valarm support to honor calendar events' valarm triggers. Fixes: #1419001
Approved by: Ted Gould, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
    a.type = Appointment::UBUNTU_ALARM;
320
320
    m_actions->phone_open_appointment(a);
321
321
    EXPECT_EQ(clock_app_url, m_live_actions->last_url);
322
 
 
323
 
    a.url = "appid://blah";
324
 
    m_actions->phone_open_appointment(a);
325
 
    EXPECT_EQ(a.url, m_live_actions->last_url);
326
322
}
327
323
 
328
324
TEST_F(LiveActionsFixture, PhoneOpenCalendarApp)
392
388
    Appointment a1;
393
389
    a1.color = "green";
394
390
    a1.summary = "write unit tests";
395
 
    a1.url = "http://www.ubuntu.com/";
396
391
    a1.uid = "D4B57D50247291478ED31DED17FF0A9838DED402";
397
392
    a1.begin = tomorrow_begin;
398
393
    a1.end = tomorrow_end;
403
398
    Appointment a2;
404
399
    a2.color = "orange";
405
400
    a2.summary = "code review";
406
 
    a2.url = "http://www.ubuntu.com/";
407
401
    a2.uid = "2756ff7de3745bbffd65d2e4779c37c7ca60d843";
408
402
    a2.begin = ubermorgen_begin;
409
403
    a2.end = ubermorgen_end;