]> Pileus Git - ~andy/gtk/commitdiff
Correct unfiltered test cases
authorKristian Rietveld <kris@gtk.org>
Tue, 1 Sep 2009 14:45:39 +0000 (16:45 +0200)
committerKristian Rietveld <kris@gtk.org>
Sat, 5 Sep 2009 15:15:41 +0000 (17:15 +0200)
gtk/tests/filtermodel.c

index 850f8d3b617c6ca8da80fa49e5da9c9837e6d449..3c3b5b46dcabb8b2ea9608b190208fb8bc6e4182 100644 (file)
@@ -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);
 }