testinggtk r294 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r294 - trunk/tests
- Date: Sat, 28 Jun 2008 12:04:32 +0000 (UTC)
Author: bjornl
Date: Sat Jun 28 12:04:32 2008
New Revision: 294
URL: http://svn.gnome.org/viewvc/testinggtk?rev=294&view=rev
Log:
Check that orientation is construction settable
Modified:
trunk/tests/test_scalebutton.py
Modified: trunk/tests/test_scalebutton.py
==============================================================================
--- trunk/tests/test_scalebutton.py (original)
+++ trunk/tests/test_scalebutton.py Sat Jun 28 12:04:32 2008
@@ -1,6 +1,7 @@
'''
Tests for the ``gtk.ScaleButton`` class.
'''
+import gobject
import gtk
from gtk import gdk
@@ -36,6 +37,15 @@
except TypeError:
assert True
+def test_horizontal_orientation():
+ '''
+ Ensure that the ``orientation`` property can be set at
+ construction time.
+ '''
+ sb = gobject.new(gtk.ScaleButton,
+ orientation = gtk.ORIENTATION_HORIZONTAL)
+ assert sb.get_property('orientation') == gtk.ORIENTATION_HORIZONTAL
+
def test_button_press_triggers_grab():
'''
Ensure that ``gtk.ScaleButton`` performs a grab when it received a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]