[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepimlibs/KDE/4.11] akonadi/calendar/tests: Use invitationPolicyDontSend to emulate the user cance
From:       Sergio Martins <iamsergio () gmail ! com>
Date:       2013-10-31 23:25:39
Message-ID: E1Vc1cR-0005AE-4u () scm ! kde ! org
[Download RAW message or body]

Git commit b093475481fba6cc4c419d8d2cd5561d248c1f9c by Sergio Martins.
Committed on 31/10/2013 at 23:24.
Pushed by smartins into branch 'KDE/4.11'.

Use invitationPolicyDontSend to emulate the user cancelling.

Just so we don't see dialogs in the unit-test.

M  +1    -1    akonadi/calendar/tests/itiphandlertest.cpp

http://commits.kde.org/kdepimlibs/b093475481fba6cc4c419d8d2cd5561d248c1f9c

diff --git a/akonadi/calendar/tests/itiphandlertest.cpp \
b/akonadi/calendar/tests/itiphandlertest.cpp index 30a6e71..7bc484d 100644
--- a/akonadi/calendar/tests/itiphandlertest.cpp
+++ b/akonadi/calendar/tests/itiphandlertest.cpp
@@ -461,7 +461,7 @@ void ITIPHandlerTest::testOutgoingInvitations_data()
     us->setStatus(Attendee::Accepted);
     incidence->addAttendee(us);
     expectedEmailCount = 0;
-    QTest::newRow("Modification. We didnt organize.2") << item << changeType << \
expectedEmailCount << invitationPolicyAsk << userCancels; +    \
QTest::newRow("Modification. We didnt organize.2") << item << changeType << \
                expectedEmailCount << invitationPolicyDontSend << userCancels;
     //----------------------------------------------------------------------------------------------
  }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic