[gtk+] tests: Don't test something we can't test



commit 75eddfffbb18ad2724fc77d790bbf15bc22225fb
Author: Benjamin Otte <otte redhat com>
Date:   Mon Feb 6 21:24:59 2012 +0100

    tests: Don't test something we can't test
    
    When using GtkTreeStore, don't compute row positions assuming
    everything's a list store, which is how get_row_start_for_index() works.
    
    So instead, do a laxer check and don't insist on proper alignment.

 gtk/tests/treeview-scrolling.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index 9bbabbb..52f1812 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -1071,7 +1071,7 @@ test_bug111500 (ScrollFixture *fixture,
 
 	gtk_tree_path_down (path);
 
-	scroll (fixture, path, TRUE, 0.5);
+	scroll (fixture, path, FALSE, 0.5);
 	gtk_tree_path_free (path);
 }
 
@@ -1127,7 +1127,7 @@ test_bug111500_mixed (ScrollFixture *fixture,
 
 	gtk_tree_path_down (path);
 
-	scroll (fixture, path, TRUE, 0.5);
+	scroll (fixture, path, FALSE, 0.5);
 	gtk_tree_path_free (path);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]