testinggtk r433 - trunk/tests



Author: bjornl
Date: Tue Sep  9 13:17:03 2008
New Revision: 433
URL: http://svn.gnome.org/viewvc/testinggtk?rev=433&view=rev

Log:
Test set get focus child attribute

Modified:
   trunk/tests/test_container.py

Modified: trunk/tests/test_container.py
==============================================================================
--- trunk/tests/test_container.py	(original)
+++ trunk/tests/test_container.py	Tue Sep  9 13:17:03 2008
@@ -33,3 +33,12 @@
     container = gtk.HBox()
     container.add(widget)
     widget.unparent()
+
+def test_set_get_focus_child():
+    container = gtk.HBox()
+    assert not container.get_focus_child()
+    widget = gtk.Label()
+    container.set_focus_child(widget)
+    assert container.get_focus_child() == widget
+    container.set_focus_child(None)
+    assert not container.get_focus_child()



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