[chronojump] Fixes on guiTests
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixes on guiTests
- Date: Fri, 6 Jan 2017 00:25:32 +0000 (UTC)
commit aab57d8c9bfb4ea25454d784db78f74e424a4f62
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jan 6 00:44:05 2017 +0100
Fixes on guiTests
src/gui/guiTests.cs | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/guiTests.cs b/src/gui/guiTests.cs
index 709e717..aaa2ff6 100644
--- a/src/gui/guiTests.cs
+++ b/src/gui/guiTests.cs
@@ -136,6 +136,7 @@ public class CJTests
CJTests.Types.END
};
+ //at the moment finish and cancel have to be done manually
public static List<Types> SequenceRJsSimulatedFinishCancel = new List<Types>
{
CJTests.Types.MODE_JUMPSREACTIVE,
@@ -144,6 +145,15 @@ public class CJTests
CJTests.Types.BUCLE_1_ON,
CJTests.Types.PERSON_SELECT, //bucle1startPos //repeat from here //when all persons
have done a jumps/runs test, will end
CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
+ CJTests.Types.CONTACTS_EXECUTE_TEST,
CJTests.Types.BUCLE_1_OFF,
CJTests.Types.END
};
@@ -368,11 +378,27 @@ public partial class ChronoJumpWindow
//configAutodetectPort = Config.AutodetectPortEnum.INACTIVE;
if(m == Constants.Menuitem_modes.JUMPSSIMPLE)
- radio_menuitem_mode_jumps_simple.Active = true;
+ {
+ if(radio_menuitem_mode_jumps_simple.Active) {
+ //needed if people select again the same option
+ select_menuitem_mode_toggled(Constants.Menuitem_modes.JUMPSSIMPLE);
+ } else
+ radio_menuitem_mode_jumps_simple.Active = true;
+ }
else if(m == Constants.Menuitem_modes.JUMPSREACTIVE)
- radio_menuitem_mode_jumps_reactive.Active = true;
+ {
+ if(radio_menuitem_mode_jumps_reactive.Active)
+ select_menuitem_mode_toggled(Constants.Menuitem_modes.JUMPSREACTIVE);
+ else
+ radio_menuitem_mode_jumps_reactive.Active = true;
+ }
else if(m == Constants.Menuitem_modes.RUNSSIMPLE)
- radio_menuitem_mode_runs_simple.Active = true;
+ {
+ if(radio_menuitem_mode_runs_simple.Active)
+ select_menuitem_mode_toggled(Constants.Menuitem_modes.RUNSSIMPLE);
+ else
+ radio_menuitem_mode_runs_simple.Active = true;
+ }
LogB.TestEnd("chronojumpWindowTestsMode");
}
@@ -466,6 +492,8 @@ public partial class ChronoJumpWindow
on_button_execute_test_clicked (new object (), new EventArgs ());
+ testsSuccededCount ++;
+
LogB.TestEnd("chronojumpWindowTestsContactsExecuteTest");
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]