summaryrefslogtreecommitdiff
path: root/gtk/tests
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2009-09-01 16:45:39 +0200
committerKristian Rietveld <kris@gtk.org>2009-09-05 17:15:41 +0200
commit15fdf44501e813e9937ea1f6c36043df8623c649 (patch)
tree18c4af5834393f16573b6d3a1670538c3a7eba1a /gtk/tests
parent18b20416e59b504ea13d918d6f0df46632740032 (diff)
downloadgtk+-15fdf44501e813e9937ea1f6c36043df8623c649.tar.gz
Correct unfiltered test cases
Diffstat (limited to 'gtk/tests')
-rw-r--r--gtk/tests/filtermodel.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c
index 850f8d3b61..3c3b5b46dc 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);
}