[testinggtk] test create child window



commit ae8daabf89dbb8bcce24b2e67d6b12d320955134
Author: Björn Lindqvist <bjourne gmail com>
Date:   Fri Jul 10 14:18:57 2009 +0200

    test create child window

 tests/gdk/test_window.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/gdk/test_window.py b/tests/gdk/test_window.py
index 672a060..667511d 100644
--- a/tests/gdk/test_window.py
+++ b/tests/gdk/test_window.py
@@ -137,6 +137,14 @@ def test_invalidate_mapped_window():
     assert area.width == 50
     assert area.height == 50
 
+def test_create_child_window():
+    window = gdk.Window(None,
+                        100, 100,
+                        gdk.WINDOW_CHILD,
+                        0,
+                        gdk.INPUT_OUTPUT)
+    assert window.get_window_type() == gdk.WINDOW_CHILD
+
 def test_show_and_hide():
     '''
     Ensure that showing and hiding a window changes its ``is_visible``



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