testinggtk r368 - trunk/tests



Author: bjornl
Date: Mon Aug 18 18:54:39 2008
New Revision: 368
URL: http://svn.gnome.org/viewvc/testinggtk?rev=368&view=rev

Log:
New test for the orientation accessors

Modified:
   trunk/tests/test_scalebutton.py

Modified: trunk/tests/test_scalebutton.py
==============================================================================
--- trunk/tests/test_scalebutton.py	(original)
+++ trunk/tests/test_scalebutton.py	Mon Aug 18 18:54:39 2008
@@ -36,6 +36,13 @@
         sb.set_property('orientation', orientation)
         assert sb.get_property('orientation') == orientation
 
+def test_set_get_orientation():
+    sb = gtk.ScaleButton(gtk.ICON_SIZE_INVALID, 0, 100, 2)
+    for orient in (gtk.ORIENTATION_HORIZONTAL,
+                   gtk.ORIENTATION_VERTICAL):
+        sb.set_orientation(orient)
+        assert sb.get_orientation() == orient
+
 def test_horizontal_orientation():
     '''
     Ensure that the ``orientation`` property can be set at



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