[testinggtk] the default allocation is 0,0-200,200



commit ded95a0e96ed7b8b72273479db7715aab71ef9dc
Author: Björn Lindqvist <bjourne gmail com>
Date:   Fri Jul 10 13:37:49 2009 +0200

    the default allocation is 0,0-200,200

 tests/test_window.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_window.py b/tests/test_window.py
index a2e0e9e..1b3a51a 100644
--- a/tests/test_window.py
+++ b/tests/test_window.py
@@ -18,6 +18,14 @@ def test_default_flags():
     assert gtk.PARENT_SENSITIVE & flags
     assert gtk.DOUBLE_BUFFERED & flags
 
+def test_default_allocation():
+    '''
+    The default allocation is (0,0)-[200,200].
+    '''
+    win = gtk.Window()
+    win.show()
+    assert win.allocation == gdk.Rectangle(0, 0, 200, 200)
+
 def test_property_change_fires_window_state_event():
     '''
     Ensure that the 'window-state-event' signal is fired when the



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