testinggtk r348 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r348 - trunk/tests
- Date: Sun, 3 Aug 2008 00:30:50 +0000 (UTC)
Author: bjornl
Date: Sun Aug 3 00:30:50 2008
New Revision: 348
URL: http://svn.gnome.org/viewvc/testinggtk?rev=348&view=rev
Log:
Test for #350252
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 00:30:50 2008
@@ -266,6 +266,21 @@
view.set_cursor((x,))
assert view.get_cursor() == ((x,), None)
+def test_set_int_cursor():
+ '''
+ Ensure that an integer can be used as the tree path. This is for
+ backwards compatibility.
+
+ :bug: #350252
+ '''
+ store = gtk.ListStore(str)
+ store.append(['str'])
+ store.append(['str'])
+ view = gtk.TreeView(store)
+ view.set_cursor(1)
+ cursor_path, focus_column = view.get_cursor()
+ assert cursor_path == (1,)
+
@utils.pass_on_warnings
def test_scroll_to_cell_without_model():
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]