[chronojump] Better management of persons on guiTests
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better management of persons on guiTests
- Date: Thu, 5 Jan 2017 19:40:20 +0000 (UTC)
commit 4d75b79913e746f667414b6ed33a650082749f44
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jan 5 20:34:03 2017 +0100
Better management of persons on guiTests
src/gui/guiTests.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/guiTests.cs b/src/gui/guiTests.cs
index 5c994cc..d2ad8f0 100644
--- a/src/gui/guiTests.cs
+++ b/src/gui/guiTests.cs
@@ -399,13 +399,14 @@ public partial class ChronoJumpWindow
{
LogB.TestStart("chronojumpWindowTestsSelectPerson");
- if(count > myTreeViewPersons.CountRows()) {
+ selectRowTreeView_persons(treeview_persons, treeview_persons_store, count);
+
+ //for three persons, count: 0,1,2, CountRows() 3,3,3
+ if(count +1 >= myTreeViewPersons.CountRows()) {
LogB.TestEnd("chronojumpWindowTestsSelectPerson_ended");
- return false;
+ return false; //bucle will exit (when arriving at end of bucle)
}
- selectRowTreeView_persons(treeview_persons, treeview_persons_store, count);
-
LogB.TestEnd("chronojumpWindowTestsSelectPerson_continuing");
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]