testinggtk r335 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r335 - trunk/tests
- Date: Wed, 2 Jul 2008 20:22:12 +0000 (UTC)
Author: bjornl
Date: Wed Jul 2 20:22:12 2008
New Revision: 335
URL: http://svn.gnome.org/viewvc/testinggtk?rev=335&view=rev
Log:
Test for gtk.Action.create_menu
Modified:
trunk/tests/test_action.py
Modified: trunk/tests/test_action.py
==============================================================================
--- trunk/tests/test_action.py (original)
+++ trunk/tests/test_action.py Wed Jul 2 20:22:12 2008
@@ -141,3 +141,11 @@
action.connect('notify', notify_cb)
action.set_property('visible-overflown', False)
assert changed_param[0].name == 'visible-overflown'
+
+def test_create_menu():
+ '''
+ The default ``gtk.Action`` class always return ``None`` for
+ ``create_menu``.
+ '''
+ action = gtk.Action('name', 'label', 'tooltip', None)
+ assert not action.create_menu()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]