testinggtk r358 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r358 - trunk/tests
- Date: Sun, 3 Aug 2008 23:41:24 +0000 (UTC)
Author: bjornl
Date: Sun Aug 3 23:41:24 2008
New Revision: 358
URL: http://svn.gnome.org/viewvc/testinggtk?rev=358&view=rev
Log:
Invert the tests that checks the reorderable property and enabling
drag source and destination. The methods enable_drag_dest() and
enable_drag_source() are supposed to always unset the reorderable
property.
Modified:
trunk/tests/test_treeview.py
Modified: trunk/tests/test_treeview.py
==============================================================================
--- trunk/tests/test_treeview.py (original)
+++ trunk/tests/test_treeview.py Sun Aug 3 23:41:24 2008
@@ -351,29 +351,29 @@
view.set_reorderable(False)
assert not view.get_reorderable()
-def test_set_model_drag_dest_still_reorderable():
+def test_reorderable_unset_by_drag_dest():
'''
- Ensure that enabling the view to act as a drag destination does
- not unset the ``reorderable`` property.
+ Ensure that enabling the view to act as a drag destination unsets
+ the ``reorderable`` property.
:bug: #540379
'''
view = gtk.TreeView()
view.set_reorderable(True)
view.enable_model_drag_dest([], gdk.ACTION_DEFAULT)
- assert view.get_reorderable()
+ assert not view.get_reorderable()
-def test_set_model_drag_source_still_reorderable():
+def test_reorderable_unset_by_drag_source():
'''
- Ensure that enabling the view to act as a drag source does not
- unset the ``reorderable`` property.
+ Ensure that enabling the view to act as a drag source unsets the
+ ``reorderable`` property.
:bug: #540379
'''
view = gtk.TreeView()
view.set_reorderable(True)
view.enable_model_drag_source(0, [], gdk.ACTION_DEFAULT)
- assert view.get_reorderable()
+ assert not view.get_reorderable()
def test_reorderable_sets_up_drag_lists():
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]