testinggtk r406 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r406 - trunk/tests
- Date: Mon, 8 Sep 2008 02:57:59 +0000 (UTC)
Author: bjornl
Date: Mon Sep 8 02:57:59 2008
New Revision: 406
URL: http://svn.gnome.org/viewvc/testinggtk?rev=406&view=rev
Log:
Test for removing non-existent accelerator group
Modified:
trunk/tests/test_window.py
Modified: trunk/tests/test_window.py
==============================================================================
--- trunk/tests/test_window.py (original)
+++ trunk/tests/test_window.py Mon Sep 8 02:57:59 2008
@@ -273,3 +273,13 @@
assert not win.get_focus()
widget.grab_focus()
assert not win.get_focus()
+
+ utils pass_on_warnings
+def test_remove_nonexistent_accel_group():
+ '''
+ Ensure that a warning is shown when an accel group that does not
+ exist in the windows list of accelerator groups is removed.
+ '''
+ ag = gtk.AccelGroup()
+ win = gtk.Window()
+ win.remove_accel_group(ag)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]