testinggtk r409 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r409 - trunk/tests
- Date: Mon, 8 Sep 2008 07:50:07 +0000 (UTC)
Author: bjornl
Date: Mon Sep 8 07:50:06 2008
New Revision: 409
URL: http://svn.gnome.org/viewvc/testinggtk?rev=409&view=rev
Log:
Add simple test for unparenting
Modified:
trunk/tests/test_widget.py
Modified: trunk/tests/test_widget.py
==============================================================================
--- trunk/tests/test_widget.py (original)
+++ trunk/tests/test_widget.py Mon Sep 8 07:50:06 2008
@@ -226,6 +226,15 @@
win.add(t)
t.realize()
+def test_unparent():
+ '''
+ Ensure that unparenting a widget clears its parent.
+ '''
+ parent = gtk.HBox()
+ child = gtk.HBox()
+ parent.add(child)
+ child.unparent()
+ assert not child.get_parent()
######################################################################
##### Focus and grab tests ###########################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]