[testinggtk] test for gdk.window_process_all_updates
- From: Björn Lindqvist <bjornl src gnome org>
- To: svn-commits-list gnome org
- Subject: [testinggtk] test for gdk.window_process_all_updates
- Date: Fri, 10 Jul 2009 14:04:21 +0000 (UTC)
commit 67cf41888107040fadb2e8c41032f8659624b7cf
Author: Björn Lindqvist <bjourne gmail com>
Date: Fri Jul 10 13:28:50 2009 +0200
test for gdk.window_process_all_updates
tests/gdk/test_window.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tests/gdk/test_window.py b/tests/gdk/test_window.py
index 4823775..7955ecc 100644
--- a/tests/gdk/test_window.py
+++ b/tests/gdk/test_window.py
@@ -189,3 +189,17 @@ def test_reparent_changes_origin():
window.reparent(parent, 55, 66)
assert window.get_origin() == (55, 66)
+def test_process_all_updates():
+ '''
+ Calling ``gdk.window_process_all_updates`` clears the update area
+ of all windows.
+ '''
+ window = gdk.Window(None,
+ 20, 20,
+ gdk.WINDOW_TOPLEVEL,
+ 0,
+ gdk.INPUT_OUTPUT)
+ window.show()
+ assert window.get_update_area()
+ gdk.window_process_all_updates()
+ assert not window.get_update_area()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]