mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
Correct unfiltered test cases
This commit is contained in:
parent
18b20416e5
commit
15fdf44501
@ -745,9 +745,12 @@ unfiltered_show_single_child (FilterTest *fixture,
|
|||||||
check_filter_model (fixture);
|
check_filter_model (fixture);
|
||||||
check_level_length (fixture->filter, NULL, 0);
|
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);
|
set_path_visibility (fixture, "2", TRUE);
|
||||||
check_level_length (fixture->filter, NULL, 1);
|
check_level_length (fixture->filter, NULL, 1);
|
||||||
check_level_length (fixture->filter, "2", 1);
|
check_level_length (fixture->filter, "0", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -767,11 +770,14 @@ unfiltered_show_single_multi_level (FilterTest *fixture,
|
|||||||
check_filter_model (fixture);
|
check_filter_model (fixture);
|
||||||
check_level_length (fixture->filter, NULL, 0);
|
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);
|
set_path_visibility (fixture, "2", TRUE);
|
||||||
check_filter_model (fixture);
|
check_filter_model (fixture);
|
||||||
check_level_length (fixture->filter, NULL, 1);
|
check_level_length (fixture->filter, NULL, 1);
|
||||||
check_level_length (fixture->filter, "2", 1);
|
check_level_length (fixture->filter, "0", 1);
|
||||||
check_level_length (fixture->filter, "2:2", 1);
|
check_level_length (fixture->filter, "0:0", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user