[chronojump] guiTests simulates RJ tests
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] guiTests simulates RJ tests
- Date: Thu, 5 Jan 2017 19:40:30 +0000 (UTC)
commit c328a8ad6148607b0c5bb186d53d4efbad459409
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jan 5 20:35:17 2017 +0100
guiTests simulates RJ tests
src/gui/chronojump.cs | 3 ++-
src/gui/guiTests.cs | 37 ++++++++++++++++++++++++++++++++++++-
2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index e105bb5..d440cfe 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -6360,7 +6360,8 @@ LogB.Debug("X");
private void on_button_gui_tests_clicked (object o, EventArgs args) {
chronojumpWindowTestsStart(Convert.ToInt32(spin_gui_tests.Value),
- CJTests.SequenceChangeMultitest
+ //CJTests.SequenceChangeMultitest
+ CJTests.SequenceRJsSimulatedFinishCancel
);
}
diff --git a/src/gui/guiTests.cs b/src/gui/guiTests.cs
index d2ad8f0..709e717 100644
--- a/src/gui/guiTests.cs
+++ b/src/gui/guiTests.cs
@@ -45,6 +45,7 @@ public class CJTests
public enum Types
{
MODE_JUMPSSIMPLE,
+ MODE_JUMPSREACTIVE,
MODE_RUNSSIMPLE,
MODE_POWERGRAVITATORY,
MODE_POWERINERTIAL,
@@ -53,6 +54,7 @@ public class CJTests
PERSON_SELECT,
MULTITEST_DO_50,
MULTITEST_DO_10,
+ CONTACTS_RJ_3J,
CONTACTS_EXECUTE_TEST,
ENCODER_SIGNAL_LOAD,
ENCODER_ECC_CON_INVERT,
@@ -134,6 +136,18 @@ public class CJTests
CJTests.Types.END
};
+ public static List<Types> SequenceRJsSimulatedFinishCancel = new List<Types>
+ {
+ CJTests.Types.MODE_JUMPSREACTIVE,
+ CJTests.Types.SESSION_LOAD,
+ CJTests.Types.CONTACTS_RJ_3J,
+ 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.BUCLE_1_OFF,
+ CJTests.Types.END
+ };
+
public CJTests(List<Types> sequence)
{
this.sequence = sequence;
@@ -276,6 +290,9 @@ public partial class ChronoJumpWindow
case CJTests.Types.MODE_JUMPSSIMPLE:
chronojumpWindowTestsMode(Constants.Menuitem_modes.JUMPSSIMPLE);
break;
+ case CJTests.Types.MODE_JUMPSREACTIVE:
+ chronojumpWindowTestsMode(Constants.Menuitem_modes.JUMPSREACTIVE);
+ break;
case CJTests.Types.MODE_RUNSSIMPLE:
chronojumpWindowTestsMode(Constants.Menuitem_modes.RUNSSIMPLE);
break;
@@ -291,6 +308,10 @@ public partial class ChronoJumpWindow
case CJTests.Types.CHRONOPIC_CONNECT_REAL:
chronojumpWindowTestsChronopicContactReal();
break;
+ case CJTests.Types.CONTACTS_RJ_3J:
+ chronojumpWindowTestsContactsRJ3J();
+ callNext = true;
+ break;
case CJTests.Types.PERSON_SELECT:
bucleContinues = chronojumpWindowTestsSelectPerson(bcount);
callNext = true;
@@ -346,7 +367,12 @@ public partial class ChronoJumpWindow
//disable autodetect
//configAutodetectPort = Config.AutodetectPortEnum.INACTIVE;
- select_menuitem_mode_toggled(m);
+ if(m == Constants.Menuitem_modes.JUMPSSIMPLE)
+ radio_menuitem_mode_jumps_simple.Active = true;
+ else if(m == Constants.Menuitem_modes.JUMPSREACTIVE)
+ radio_menuitem_mode_jumps_reactive.Active = true;
+ else if(m == Constants.Menuitem_modes.RUNSSIMPLE)
+ radio_menuitem_mode_runs_simple.Active = true;
LogB.TestEnd("chronojumpWindowTestsMode");
}
@@ -425,6 +451,15 @@ public partial class ChronoJumpWindow
return true;
}
+ private void chronojumpWindowTestsContactsRJ3J()
+ {
+ LogB.TestStart("chronojumpWindowTestsContactsRJ3J");
+
+ extra_window_jumps_rj_spinbutton_limit.Value = 3;
+
+ LogB.TestEnd("chronojumpWindowTestsContactsRJ3J");
+ }
+
private bool chronojumpWindowTestsContactsExecuteTest()
{
LogB.TestStart("chronojumpWindowTestsContactsExecuteTest");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]