From 15dce287e52134dbd3cced24a4ef0eb807ffc49d Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 4 Nov 2013 22:24:49 +0200 Subject: [PATCH] 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 --- uitest/src/com/vaadin/tests/push/PushLargeData.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); } -- 2.39.5