testinggtk r341 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r341 - trunk/tests
- Date: Thu, 17 Jul 2008 23:55:19 +0000 (UTC)
Author: bjornl
Date: Thu Jul 17 23:55:19 2008
New Revision: 341
URL: http://svn.gnome.org/viewvc/testinggtk?rev=341&view=rev
Log:
Test related to #541391
Modified:
trunk/tests/test_window.py
Modified: trunk/tests/test_window.py
==============================================================================
--- trunk/tests/test_window.py (original)
+++ trunk/tests/test_window.py Thu Jul 17 23:55:19 2008
@@ -223,7 +223,7 @@
def test_focus_widget_with_disabled_button():
'''
- Two buttons are added two a window. The first button cannot be
+ Two buttons are added to a window. The first button cannot be
focused so the second button should be the focus widget.
'''
b1 = gtk.Button('b1')
@@ -238,3 +238,23 @@
win.add(hbox)
win.show_all()
assert win.get_focus() == b2
+
+def test_focus_widget_with_disabled_treeview():
+ '''
+ Two treeviews are added to a window. The first treeview cannot be
+ focused, so the second treeview should become the focus widget.
+
+ :bug: #541391
+ '''
+ v1 = gtk.TreeView()
+ v1.set_property('can-focus', False)
+ v2 = gtk.TreeView()
+
+ hbox = gtk.HBox()
+ hbox.add(v1)
+ hbox.add(v2)
+
+ win = gtk.Window()
+ win.add(hbox)
+ win.show_all()
+ assert win.get_focus() == v2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]