summaryrefslogtreecommitdiffstats
path: root/server/tests/src/com
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-19 16:16:35 +0200
committerVaadin Code Review <review@vaadin.com>2015-06-05 12:58:55 +0000
commit7adec3cd86956fde2fe3670ed4b0eef97bbb0904 (patch)
tree55415308abdec1f3de103135cea0217cab81526f /server/tests/src/com
parent67b0e2dd3f1f520bf25b3715f9cddcefcc24689f (diff)
downloadvaadin-framework-7adec3cd86956fde2fe3670ed4b0eef97bbb0904.tar.gz
vaadin-framework-7adec3cd86956fde2fe3670ed4b0eef97bbb0904.zip
Convenience Window.setPosition(x,y) (#16335)
Change-Id: If574863fc24cecb9f8d17773833817d67f3a0e12
Diffstat (limited to 'server/tests/src/com')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/window/WindowTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/window/WindowTest.java b/server/tests/src/com/vaadin/tests/server/component/window/WindowTest.java
index b74896b7a1..e9e73c1e0f 100644
--- a/server/tests/src/com/vaadin/tests/server/component/window/WindowTest.java
+++ b/server/tests/src/com/vaadin/tests/server/component/window/WindowTest.java
@@ -50,4 +50,11 @@ public class WindowTest {
Assert.assertEquals(b2, window.getAssistiveDescription()[1]);
}
+
+ @Test
+ public void testSetPosition() {
+ window.setPosition(100, 200);
+ Assert.assertEquals(100, window.getPositionX());
+ Assert.assertEquals(200, window.getPositionY());
+ }
}