[chronojump] Better start of test: chronojumpWindowTestsChronopicContactReal
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better start of test: chronojumpWindowTestsChronopicContactReal
- Date: Thu, 20 Oct 2016 11:48:07 +0000 (UTC)
commit f982f7d2437cd653e8224e46e337181f57e39d81
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Oct 20 13:47:41 2016 +0200
Better start of test: chronojumpWindowTestsChronopicContactReal
src/gui/guiTests.cs | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/guiTests.cs b/src/gui/guiTests.cs
index 97fdfc7..1aef7d7 100644
--- a/src/gui/guiTests.cs
+++ b/src/gui/guiTests.cs
@@ -359,8 +359,19 @@ public partial class ChronoJumpWindow
{
LogB.TestStart("chronojumpWindowTestsChronopicContactReal");
+ if(chronopicRegister.NumConnectedOfType(ChronopicRegisterPort.Types.CONTACTS) != 1)
+ {
+ testsActive = false;
+ new DialogMessage(Constants.MessageTypes.WARNING, "Warning, need ONE contacts
chronopic connected");
+ return;
+ }
+
ChronopicRegisterPort crp =
chronopicRegister.ConnectedOfType(ChronopicRegisterPort.Types.CONTACTS);
- if(! cp2016.IsLastConnectedReal(crp)) {
+ if(cp2016.IsLastConnectedReal(crp)) {
+ LogB.TestEnd("chronojumpWindowTestsChronopicContactReal");
+ chronojumpWindowTestsNext();
+ }
+ else {
cp2016.FakeButtonContactsRealDone.Clicked +=
new EventHandler(on_connection_contacts_real_done);
cp2016.ConnectContactsReal(app1, crp,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]