testinggtk r220 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r220 - trunk/tests/gdk
- Date: Sun, 22 Jun 2008 02:08:26 +0000 (UTC)
Author: bjornl
Date: Sun Jun 22 02:08:25 2008
New Revision: 220
URL: http://svn.gnome.org/viewvc/testinggtk?rev=220&view=rev
Log:
Test default values
Modified:
trunk/tests/gdk/test_dragcontext.py
Modified: trunk/tests/gdk/test_dragcontext.py
==============================================================================
--- trunk/tests/gdk/test_dragcontext.py (original)
+++ trunk/tests/gdk/test_dragcontext.py Sun Jun 22 02:08:25 2008
@@ -5,6 +5,19 @@
from gtk import gdk
from tests import utils
+def test_default_attributes():
+ dc = gdk.DragContext()
+ assert not dc.get_source_widget()
+ assert not dc.is_source
+ assert not dc.targets
+ assert not dc.source_window
+ assert not dc.dest_window
+ assert dc.action == 0
+ assert dc.actions == 0
+ assert dc.suggested_action == 0
+ assert dc.start_time == 0
+ assert dc.protocol == 0
+
def test_drag_get_selection():
'''
Ensure that calling ``drag_get_selection`` works as expected.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]