[testinggtk] gdk.window_process_all_updates() has to be called to ensure that the update area is cleared.



commit ad66e3c67c2621be27afcbc378e1f7d3691d547a
Author: Björn Lindqvist <bjourne gmail com>
Date:   Fri Jul 10 13:39:26 2009 +0200

    gdk.window_process_all_updates() has to be called to ensure that the update area is cleared.

 tests/test_window.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_window.py b/tests/test_window.py
index 1b3a51a..cf0da94 100644
--- a/tests/test_window.py
+++ b/tests/test_window.py
@@ -155,6 +155,7 @@ def test_resize_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_default_size(100, 100)
     win.resize(200, 200)
     assert not win.window.get_update_area()
@@ -168,6 +169,7 @@ def test_set_policy_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_policy(False, False, False)
     assert not win.window.get_update_area()
 
@@ -180,6 +182,7 @@ def test_set_position_constraints_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_position(gtk.WIN_POS_CENTER_ALWAYS)
     assert not win.window.get_update_area()
 
@@ -190,6 +193,7 @@ def test_set_geometry_hints_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_geometry_hints(win)
     assert not win.window.get_update_area()
 
@@ -202,6 +206,7 @@ def test_set_default_size_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_default_size(5321, 123)
     assert not win.window.get_update_area()
 
@@ -213,6 +218,7 @@ def test_set_gravity_does_not_invalidate():
     '''
     win = gtk.Window()
     win.show()
+    gdk.window_process_all_updates()
     win.set_gravity(gdk.GRAVITY_CENTER)
     assert not win.window.get_update_area()
 



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