testinggtk r290 - trunk/tests/gdk



Author: bjornl
Date: Sat Jun 28 11:32:42 2008
New Revision: 290
URL: http://svn.gnome.org/viewvc/testinggtk?rev=290&view=rev

Log:
Test get_origin()

Modified:
   trunk/tests/gdk/test_window.py

Modified: trunk/tests/gdk/test_window.py
==============================================================================
--- trunk/tests/gdk/test_window.py	(original)
+++ trunk/tests/gdk/test_window.py	Sat Jun 28 11:32:42 2008
@@ -73,3 +73,15 @@
     assert isinstance(x, int)
     assert isinstance(y, int)
     assert isinstance(modifier, gdk.ModifierType)
+
+def test_get_origin():
+    window = gdk.Window(None,
+                        100, 100,
+                        gdk.WINDOW_TOPLEVEL,
+                        0,
+                        gdk.INPUT_OUTPUT,
+                        x = 120, y = 80)
+    x, y = window.get_origin()
+    assert x == 120
+    assert y == 80
+



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