testinggtk r356 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r356 - trunk/tests
- Date: Sun, 3 Aug 2008 23:34:17 +0000 (UTC)
Author: bjornl
Date: Sun Aug 3 23:34:17 2008
New Revision: 356
URL: http://svn.gnome.org/viewvc/testinggtk?rev=356&view=rev
Log:
Test for #546005
Modified:
trunk/tests/test_treeview.py
Modified: trunk/tests/test_treeview.py
==============================================================================
--- trunk/tests/test_treeview.py (original)
+++ trunk/tests/test_treeview.py Sun Aug 3 23:34:17 2008
@@ -377,3 +377,14 @@
cursor_path, focus_column = view.get_cursor()
assert cursor_path == (1,)
+ utils fail_on_warnings
+def test_set_cursor_with_empty_model():
+ '''
+ Ensure that setting a cursor on a tree view with an empty model
+ works as expected.
+
+ :bug: #546005
+ '''
+ store = gtk.ListStore(str)
+ view = gtk.TreeView(store)
+ view.set_cursor((1,))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]