testinggtk r403 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r403 - trunk/tests
- Date: Mon, 8 Sep 2008 01:11:45 +0000 (UTC)
Author: bjornl
Date: Mon Sep 8 01:11:44 2008
New Revision: 403
URL: http://svn.gnome.org/viewvc/testinggtk?rev=403&view=rev
Log:
Test for mapping widget with gtk.VISIBLE flag
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 01:11:44 2008
@@ -193,6 +193,17 @@
widget = gtk.Button()
widget.map()
+def test_map_visible_widget():
+ '''
+ Ensure that mapping a visible unrealized widget fails with a
+ warning message.
+
+ :bug: TBD
+ '''
+ widget = gtk.Button('hi')
+ widget.set_flags(gtk.VISIBLE)
+ widget.map()
+
######################################################################
##### Focus and grab tests ###########################################
######################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]