summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2010-05-25 12:24:35 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2010-05-25 12:24:35 +0000
commit2556ee7993dff3d23b78fe27af5595a311969380 (patch)
tree89dabd97df6c9f4fe64e709606b11fb01b1ac9c3 /tests
parentf194b9b78e15e44c9e6f8be5435583432f06294a (diff)
downloadvaadin-framework-2556ee7993dff3d23b78fe27af5595a311969380.tar.gz
vaadin-framework-2556ee7993dff3d23b78fe27af5595a311969380.zip
Testcase for #4427
svn changeset:13353/svn branch:6.4
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/vaadin/tests/components/window/SubWindowPositionUpdate.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/window/SubWindowPositionUpdate.java b/tests/src/com/vaadin/tests/components/window/SubWindowPositionUpdate.java
new file mode 100644
index 0000000000..9383dba80f
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/window/SubWindowPositionUpdate.java
@@ -0,0 +1,44 @@
+package com.vaadin.tests.components.window;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.ProgressIndicator;
+import com.vaadin.ui.Window;
+
+public class SubWindowPositionUpdate extends TestBase {
+
+ static int delay = 400;
+
+ @Override
+ protected void setup() {
+ Window subWindow = new Window("Draggable sub window") {
+ @Override
+ public void setPositionX(int positionX) {
+ try {
+ Thread.sleep(delay);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ super.setPositionX(positionX);
+ }
+ };
+ getMainWindow().addWindow(subWindow);
+ ProgressIndicator pi = new ProgressIndicator();
+ pi.setIndeterminate(true);
+ pi.setPollingInterval(delay);
+ addComponent(pi);
+ }
+
+ @Override
+ protected String getDescription() {
+ return "The window position should not jump inconsistently while "
+ + "dragging, even though external UIDL updates are sent and "
+ + "received by the progress indicator. A small delay is used "
+ + "on the server side to surface the issue (" + delay + "ms).";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 4427;
+ }
+
+}