summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-11-04 22:24:49 +0200
committerVaadin Code Review <review@vaadin.com>2013-11-04 20:32:04 +0000
commit15dce287e52134dbd3cced24a4ef0eb807ffc49d (patch)
tree4d93818b708db9e2935c3b18fccd286c9be2e75b /uitest/src/com/vaadin/tests/push
parentc4aff7781269427bd4beccf7fc7d04b8760359b5 (diff)
downloadvaadin-framework-15dce287e52134dbd3cced24a4ef0eb807ffc49d.tar.gz
vaadin-framework-15dce287e52134dbd3cced24a4ef0eb807ffc49d.zip
Make test more reliable by updating description which does not update the DOM
Many browsers (IE) choke quite easily when there is a 1MB string inside a div Change-Id: Ied9b27c17c5374b7cac36820be9cbe38e84448ee
Diffstat (limited to 'uitest/src/com/vaadin/tests/push')
-rw-r--r--uitest/src/com/vaadin/tests/push/PushLargeData.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/push/PushLargeData.java b/uitest/src/com/vaadin/tests/push/PushLargeData.java
index 1a9bf16de6..3b72424b32 100644
--- a/uitest/src/com/vaadin/tests/push/PushLargeData.java
+++ b/uitest/src/com/vaadin/tests/push/PushLargeData.java
@@ -126,7 +126,9 @@ public abstract class PushLargeData extends AbstractTestUIWithLog {
@Override
public void run() {
PushLargeData ui = (PushLargeData) UI.getCurrent();
- ui.getDataLabel().setValue(
+ // Using description as it is not rendered to the DOM
+ // immediately
+ ui.getDataLabel().setDescription(
System.currentTimeMillis() + ": " + data);
ui.log("Package " + idx + " pushed");
}