testinggtk r366 - trunk/tests



Author: bjornl
Date: Mon Aug 18 17:44:40 2008
New Revision: 366
URL: http://svn.gnome.org/viewvc/testinggtk?rev=366&view=rev

Log:
Fix testcase to match how the 'fix' should behave

Modified:
   trunk/tests/test_menuitem.py

Modified: trunk/tests/test_menuitem.py
==============================================================================
--- trunk/tests/test_menuitem.py	(original)
+++ trunk/tests/test_menuitem.py	Mon Aug 18 17:44:40 2008
@@ -90,15 +90,16 @@
 @utils.fail_on_warnings
 def test_select_menu_item_with_submenu():
     '''
-    Ensure that selecting a menu item with a submenu without a parent
-    works as expected.
+    Selecting a submenu on a menu item without a parent should work as
+    expected and has no effect.
 
     :bug: #541315
     '''
     menu = gtk.Menu()
     mi = gtk.MenuItem('hi')
     mi.set_submenu(menu)
+    current_grab = gtk.grab_get_current()
     mi.select()
     mi.select()
-    assert gtk.grab_get_current() == menu
+    assert gtk.grab_get_current() == current_grab
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]