testinggtk r391 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r391 - trunk/tests
- Date: Sat, 23 Aug 2008 18:02:40 +0000 (UTC)
Author: bjornl
Date: Sat Aug 23 18:02:40 2008
New Revision: 391
URL: http://svn.gnome.org/viewvc/testinggtk?rev=391&view=rev
Log:
Test set/get digits property
Modified:
trunk/tests/test_spinbutton.py
Modified: trunk/tests/test_spinbutton.py
==============================================================================
--- trunk/tests/test_spinbutton.py (original)
+++ trunk/tests/test_spinbutton.py Sat Aug 23 18:02:40 2008
@@ -31,6 +31,15 @@
spin.set_digits(0)
assert spin.get_digits() == 0
+def test_set_get_digits_property():
+ adj = gtk.Adjustment(0, 0, 0, 0, 0, 0)
+ spin = gtk.SpinButton(adj, 1, 2)
+ assert spin.get_property('digits') == 2
+ spin.set_property('digits', 0)
+ assert spin.get_property('digits') == 0
+ spin.set_property('digits', 10)
+ assert spin.get_property('digits') == 10
+
@utils.pass_on_warnings
def test_set_negative_digits():
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]