[gtk+] Correct unfiltered test cases
- From: Kristian Rietveld <kristian src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Correct unfiltered test cases
- Date: Sat, 5 Sep 2009 15:26:13 +0000 (UTC)
commit 15fdf44501e813e9937ea1f6c36043df8623c649
Author: Kristian Rietveld <kris gtk org>
Date: Tue Sep 1 16:45:39 2009 +0200
Correct unfiltered test cases
gtk/tests/filtermodel.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c
index 850f8d3..3c3b5b4 100644
--- a/gtk/tests/filtermodel.c
+++ b/gtk/tests/filtermodel.c
@@ -745,9 +745,12 @@ unfiltered_show_single_child (FilterTest *fixture,
check_filter_model (fixture);
check_level_length (fixture->filter, NULL, 0);
+ /* From here we are filtered, "2" in the real model is "0" in the filter
+ * model.
+ */
set_path_visibility (fixture, "2", TRUE);
check_level_length (fixture->filter, NULL, 1);
- check_level_length (fixture->filter, "2", 1);
+ check_level_length (fixture->filter, "0", 1);
}
static void
@@ -767,11 +770,14 @@ unfiltered_show_single_multi_level (FilterTest *fixture,
check_filter_model (fixture);
check_level_length (fixture->filter, NULL, 0);
+ /* From here we are filtered, "2" in the real model is "0" in the filter
+ * model.
+ */
set_path_visibility (fixture, "2", TRUE);
check_filter_model (fixture);
check_level_length (fixture->filter, NULL, 1);
- check_level_length (fixture->filter, "2", 1);
- check_level_length (fixture->filter, "2:2", 1);
+ check_level_length (fixture->filter, "0", 1);
+ check_level_length (fixture->filter, "0:0", 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]