[gtk+] tests: Remove untrue assertion
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Remove untrue assertion
- Date: Mon, 6 Feb 2012 20:54:33 +0000 (UTC)
commit 33864064f47c478ebe6a64f023bfb39d6ea60e8d
Author: Benjamin Otte <otte redhat com>
Date: Mon Feb 6 21:49:17 2012 +0100
tests: Remove untrue assertion
Even if something is not at the top, things might still not be scrolled.
For example in the case where things are exactly at the center.
gtk/tests/treeview-scrolling.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index 52f1812..7fd2ec4 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -399,7 +399,6 @@ assert_position_with_align (GtkTreeView *tree_view,
*/
g_assert (row_start >= gtk_adjustment_get_page_size (vadjustment)
|| row_start + row_height >= gtk_adjustment_get_page_size (vadjustment));
- g_assert (gtk_adjustment_get_value (vadjustment) > 0);
g_assert (row_y == gtk_adjustment_get_page_size (vadjustment) - row_height);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]