testinggtk r349 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r349 - trunk/tests
- Date: Sun, 3 Aug 2008 00:36:17 +0000 (UTC)
Author: bjornl
Date: Sun Aug 3 00:36:17 2008
New Revision: 349
URL: http://svn.gnome.org/viewvc/testinggtk?rev=349&view=rev
Log:
Test for visible attribute
Modified:
trunk/tests/test_action.py
Modified: trunk/tests/test_action.py
==============================================================================
--- trunk/tests/test_action.py (original)
+++ trunk/tests/test_action.py Sun Aug 3 00:36:17 2008
@@ -86,6 +86,13 @@
item.retrieve_proxy_menu_item()
assert emitted[0]
+def test_set_get_visible():
+ action = gtk.Action('name', 'action', 'tooltip', None)
+ assert action.get_visible()
+ for value in (False, True):
+ action.set_visible(value)
+ assert action.get_visible() == value
+
def test_set_get_visible_overflown():
action = gtk.Action('name', 'action', 'tooltip', None)
assert action.get_property('visible-overflown')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]