testinggtk r251 - trunk/tests



Author: bjornl
Date: Wed Jun 25 21:21:04 2008
New Revision: 251
URL: http://svn.gnome.org/viewvc/testinggtk?rev=251&view=rev

Log:
Simple sanity test

Modified:
   trunk/tests/test_builder.py

Modified: trunk/tests/test_builder.py
==============================================================================
--- trunk/tests/test_builder.py	(original)
+++ trunk/tests/test_builder.py	Wed Jun 25 21:21:04 2008
@@ -8,3 +8,15 @@
     assert not b.get_property('translation-domain')
     assert not b.get_translation_domain()
     assert b.get_objects() == []
+
+def test_load_combo_box():
+    xml = '''
+    <interface>
+        <object class = "GtkComboBox" id = "foo">
+        </object>
+    </interface>
+    '''
+    b = gtk.Builder()
+    b.add_from_string(xml)
+    combo = b.get_object('foo')
+    assert isinstance(combo, gtk.ComboBox)



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