[testinggtk] test default update_area of gtk.Window
- From: Björn Lindqvist <bjornl src gnome org>
- To: svn-commits-list gnome org
- Subject: [testinggtk] test default update_area of gtk.Window
- Date: Fri, 10 Jul 2009 14:04:31 +0000 (UTC)
commit 05b77641692f935f9b80d610dee0650e34e7dcab
Author: Björn Lindqvist <bjourne gmail com>
Date: Fri Jul 10 13:33:34 2009 +0200
test default update_area of gtk.Window
tests/test_window.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_window.py b/tests/test_window.py
index 2c65859..a2e0e9e 100644
--- a/tests/test_window.py
+++ b/tests/test_window.py
@@ -129,6 +129,16 @@ def test_resize_window():
win.resize(size, size)
assert win.get_size() == (size, size)
+def test_default_update_area():
+ '''
+ The update_area of the newly visible gdk.Window is
+ (0,0)-[200,200]. Why 200?
+ '''
+ win = gtk.Window()
+ win.show()
+ area = win.window.get_update_area().get_clipbox()
+ assert area == gdk.Rectangle(0, 0, 200, 200)
+
def test_resize_does_not_invalidate():
'''
Ensure that resizing a shown window does not invalidate it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]