testinggtk r286 - trunk/tests



Author: bjornl
Date: Sat Jun 28 11:15:59 2008
New Revision: 286
URL: http://svn.gnome.org/viewvc/testinggtk?rev=286&view=rev

Log:
Test for getting/setting inverted

Modified:
   trunk/tests/test_range.py

Modified: trunk/tests/test_range.py
==============================================================================
--- trunk/tests/test_range.py	(original)
+++ trunk/tests/test_range.py	Sat Jun 28 11:15:59 2008
@@ -28,5 +28,11 @@
     gtk.Range.do_scroll_event(range, ev)
 
     assert sig_change_value.called
-    
 
+def test_set_get_inverted():
+    range = gtk.HScrollbar()
+    assert not range.get_inverted()
+    range.set_inverted(True)
+    assert range.get_inverted()
+    range.set_inverted(False)
+    assert not range.get_inverted()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]