testinggtk r312 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r312 - trunk/tests
- Date: Sun, 29 Jun 2008 13:02:41 +0000 (UTC)
Author: bjornl
Date: Sun Jun 29 13:02:41 2008
New Revision: 312
URL: http://svn.gnome.org/viewvc/testinggtk?rev=312&view=rev
Log:
Test for the widget flag constants
Modified:
trunk/tests/__init__.py
Modified: trunk/tests/__init__.py
==============================================================================
--- trunk/tests/__init__.py (original)
+++ trunk/tests/__init__.py Sun Jun 29 13:02:41 2008
@@ -83,6 +83,26 @@
assert hasattr(gtk, 'UI_MANAGER_TOOLBAR')
assert hasattr(gtk, 'UI_MANAGER_POPUP')
+def test_list_widget_flags():
+ assert hasattr(gtk, 'TOPLEVEL')
+ assert hasattr(gtk, 'NO_WINDOW')
+ assert hasattr(gtk, 'REALIZED')
+ assert hasattr(gtk, 'MAPPED')
+ assert hasattr(gtk, 'VISIBLE')
+ assert hasattr(gtk, 'SENSITIVE')
+ assert hasattr(gtk, 'PARENT_SENSITIVE')
+ assert hasattr(gtk, 'CAN_FOCUS')
+ assert hasattr(gtk, 'HAS_FOCUS')
+ assert hasattr(gtk, 'CAN_DEFAULT')
+ assert hasattr(gtk, 'HAS_DEFAULT')
+ assert hasattr(gtk, 'HAS_GRAB')
+ assert hasattr(gtk, 'RC_STYLE')
+ assert hasattr(gtk, 'COMPOSITE_CHILD')
+ assert hasattr(gtk, 'NO_REPARENT')
+ assert hasattr(gtk, 'APP_PAINTABLE')
+ assert hasattr(gtk, 'RECEIVES_DEFAULT')
+ assert hasattr(gtk, 'DOUBLE_BUFFERED')
+
def test_grab_get_current():
'''
Ensure that ``gtk.grab_get_current`` returns ``None`` when no
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]