testinggtk r242 - trunk/tests/gladetests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r242 - trunk/tests/gladetests
- Date: Wed, 25 Jun 2008 20:50:13 +0000 (UTC)
Author: bjornl
Date: Wed Jun 25 20:50:13 2008
New Revision: 242
URL: http://svn.gnome.org/viewvc/testinggtk?rev=242&view=rev
Log:
Test for basic loading of a gtk.ComboBox
Modified:
trunk/tests/gladetests/__init__.py
Modified: trunk/tests/gladetests/__init__.py
==============================================================================
--- trunk/tests/gladetests/__init__.py (original)
+++ trunk/tests/gladetests/__init__.py Wed Jun 25 20:50:13 2008
@@ -1,6 +1,7 @@
'''
Tests for the ``gtk.glade`` package.
'''
+import gtk
from gtk import glade
def test_new_widget_not_embedded_in_glade_interface():
@@ -16,3 +17,12 @@
<widget class="GtkComboBox" id="foo"></widget>
'''
glade.xml_new_from_buffer(xml, len(xml))
+
+def test_load_combo_box():
+ xml = '''
+ <glade-interface>
+ <widget class="GtkComboBox" id="foo"></widget>
+ </glade-interface>
+ '''
+ widget = glade.xml_new_from_buffer(xml, len(xml))
+ assert isinstance(widget.get_widget('foo'), gtk.ComboBox)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]