testinggtk r169 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r169 - trunk/tests
- Date: Fri, 20 Jun 2008 22:21:54 +0000 (UTC)
Author: bjornl
Date: Fri Jun 20 22:21:54 2008
New Revision: 169
URL: http://svn.gnome.org/viewvc/testinggtk?rev=169&view=rev
Log:
Test for default attributes
Modified:
trunk/tests/test_treeview.py
Modified: trunk/tests/test_treeview.py
==============================================================================
--- trunk/tests/test_treeview.py (original)
+++ trunk/tests/test_treeview.py Fri Jun 20 22:21:54 2008
@@ -9,6 +9,47 @@
'''
assert hasattr(gtk.TreeView, 'get_tooltip_context')
+def test_default_attributes():
+ view = gtk.TreeView()
+
+ assert view.get_enable_search()
+ assert view.get_headers_clickable()
+ assert view.get_headers_visible()
+ assert view.get_show_expanders()
+
+ assert not view.get_bin_window()
+ assert not view.get_columns()
+ assert not view.get_drag_dest_row()
+ assert not view.get_enable_tree_lines()
+ assert not view.get_expander_column()
+ assert not view.get_fixed_height_mode()
+ assert not view.get_grid_lines()
+ assert not view.get_hover_expand()
+ assert not view.get_hover_selection()
+ assert not view.get_model()
+ assert not view.get_reorderable()
+ assert not view.get_rubber_banding()
+ assert not view.get_rules_hint()
+ assert not view.get_search_entry()
+ assert not view.get_visible_range()
+ assert not view.is_rubber_banding_active()
+
+ assert view.get_level_indentation() == 0
+ assert view.get_tooltip_column() == -1
+ assert view.get_search_column() == -1
+
+ assert view.get_cursor() == (None, None)
+
+ rect = view.get_visible_rect()
+ assert rect.x == 0
+ assert rect.y == 0
+ assert rect.width == 1
+ assert rect.height == 0
+
+ assert isinstance(view.get_hadjustment(), gtk.Adjustment)
+ assert isinstance(view.get_vadjustment(), gtk.Adjustment)
+ assert isinstance(view.get_selection(), gtk.TreeSelection)
+
def test_get_bin_window():
view = gtk.TreeView()
assert not view.get_bin_window()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]