testinggtk r406 - trunk/tests



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]