testinggtk r232 - trunk/tests



Author: bjornl
Date: Mon Jun 23 19:16:34 2008
New Revision: 232
URL: http://svn.gnome.org/viewvc/testinggtk?rev=232&view=rev

Log:
Test for infinite loop

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:16:34 2008
@@ -14,3 +14,18 @@
     label = gtk.Label('hi')
     hbox.add(label)
     hbox.add(label)
+
+ utils pass_on_warnings
+def test_hbox_looping():
+    '''
+    A ``GtkWarning`` should be printed when you attempt to add an item
+    to a container that is already an ancestor of that container.
+
+    Disabled due to infinite loop.
+
+    :bug: #539807
+    '''
+    # hbox1 = gtk.HBox()
+    # hbox2 = gtk.HBox()
+    # hbox1.add(hbox2)
+    # hbox2.add(hbox1)



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