testinggtk r185 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r185 - trunk/tests
- Date: Sat, 21 Jun 2008 14:17:32 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 14:17:32 2008
New Revision: 185
URL: http://svn.gnome.org/viewvc/testinggtk?rev=185&view=rev
Log:
Test for text property
Modified:
trunk/tests/test_cellrenderertext.py
Modified: trunk/tests/test_cellrenderertext.py
==============================================================================
--- trunk/tests/test_cellrenderertext.py (original)
+++ trunk/tests/test_cellrenderertext.py Sat Jun 21 14:17:32 2008
@@ -39,3 +39,10 @@
(0, 0, 10, 10),
0)
assert n_emits[0] == 1
+
+def test_set_get_text():
+ cr = gtk.CellRendererText()
+ cr.set_property('text', 'foo')
+ assert cr.get_property('text') == 'foo'
+ cr.set_property('text', None)
+ assert not cr.get_property('text')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]