testinggtk r300 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r300 - trunk/tests
- Date: Sat, 28 Jun 2008 13:27:55 +0000 (UTC)
Author: bjornl
Date: Sat Jun 28 13:27:55 2008
New Revision: 300
URL: http://svn.gnome.org/viewvc/testinggtk?rev=300&view=rev
Log:
Test for hide-if-empty property
Modified:
trunk/tests/test_action.py
Modified: trunk/tests/test_action.py
==============================================================================
--- trunk/tests/test_action.py (original)
+++ trunk/tests/test_action.py Sat Jun 28 13:27:55 2008
@@ -107,7 +107,12 @@
action.set_property('visible-overflown', False)
item.retrieve_proxy_menu_item()
assert not item.get_proxy_menu_item('gtk-action-menu-item')
-
-
-
+
+def test_set_get_hide_if_empty():
+ action = gtk.Action('name', 'action', 'tooltip', None)
+ assert action.get_property('hide-if-empty')
+ action.set_property('hide-if-empty', False)
+ assert not action.get_property('hide-if-empty')
+ action.set_property('hide-if-empty', True)
+ assert action.get_property('hide-if-empty')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]