testinggtk r269 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r269 - trunk/tests
- Date: Thu, 26 Jun 2008 22:47:26 +0000 (UTC)
Author: bjornl
Date: Thu Jun 26 22:47:26 2008
New Revision: 269
URL: http://svn.gnome.org/viewvc/testinggtk?rev=269&view=rev
Log:
Test default values for attributes
Modified:
trunk/tests/test_widget.py
Modified: trunk/tests/test_widget.py
==============================================================================
--- trunk/tests/test_widget.py (original)
+++ trunk/tests/test_widget.py Thu Jun 26 22:47:26 2008
@@ -22,6 +22,17 @@
assert widget.get_display()
assert widget.get_toplevel() == widget
+ # Check widget attributes
+ assert widget.allocation
+ assert widget.style
+
+ assert not widget.name
+ assert not widget.parent
+ assert not widget.saved_state
+ assert not widget.window
+
+ assert widget.state == gtk.STATE_NORMAL
+
def test_toplevel_in_window():
'''
Ensure that the toplevel for a ``gtk.Widget`` is the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]