testinggtk r233 - trunk/tests/gobjecttests



Author: bjornl
Date: Mon Jun 23 19:18:49 2008
New Revision: 233
URL: http://svn.gnome.org/viewvc/testinggtk?rev=233&view=rev

Log:
New test for checking cumulativeness of freeze_notify, invert multiple_thaw test

Modified:
   trunk/tests/gobjecttests/test_gobject.py

Modified: trunk/tests/gobjecttests/test_gobject.py
==============================================================================
--- trunk/tests/gobjecttests/test_gobject.py	(original)
+++ trunk/tests/gobjecttests/test_gobject.py	Mon Jun 23 19:18:49 2008
@@ -14,17 +14,16 @@
     for x in range(10):
         obj.freeze_notify()
 
- utils fail_on_warnings
+ utils pass_on_warnings
 def test_multiple_thaw():
     '''
-    Ensure that thawing notify signals multiple times works as
-    expected.
+    Ensure that thaw notifying an unfrozen ``gobject.GObject`` prints
+    a warning.
 
     :bug: #539553
     '''
     obj = gobject.GObject()
-    for x in range(10):
-        obj.thaw_notify()
+    obj.thaw_notify()
 
 @utils.pass_on_warnings
 def test_handler_block_invalid_handler_id():
@@ -34,3 +33,10 @@
     '''
     obj = gobject.GObject()
     obj.handler_block(123)
+
+def test_is_freeze_cumulative():
+    obj = gobject.GObject()
+    for x in range(10):
+        obj.freeze_notify()
+    for x in range(10):
+        obj.thaw_notify()



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