testinggtk r234 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r234 - trunk/tests
- Date: Mon, 23 Jun 2008 19:34:10 +0000 (UTC)
Author: bjornl
Date: Mon Jun 23 19:34:10 2008
New Revision: 234
URL: http://svn.gnome.org/viewvc/testinggtk?rev=234&view=rev
Log:
Test add hbox to hbox
Modified:
trunk/tests/test_hbox.py
Modified: trunk/tests/test_hbox.py
==============================================================================
--- trunk/tests/test_hbox.py (original)
+++ trunk/tests/test_hbox.py Mon Jun 23 19:34:10 2008
@@ -15,7 +15,7 @@
hbox.add(label)
hbox.add(label)
- utils pass_on_warnings
+# utils pass_on_warnings
def test_hbox_looping():
'''
A ``GtkWarning`` should be printed when you attempt to add an item
@@ -29,3 +29,10 @@
# hbox2 = gtk.HBox()
# hbox1.add(hbox2)
# hbox2.add(hbox1)
+
+def test_add_hbox_to_itself():
+ '''
+ Check that you can't add a ``gtk.HBox`` to itself.
+ '''
+ hbox = gtk.HBox()
+ hbox.add(hbox)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]