From: Artur Signell Date: Mon, 4 Nov 2013 20:24:49 +0000 (+0200) Subject: Make test more reliable by updating description which does not update the DOM X-Git-Tag: 7.1.8~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15dce287e52134dbd3cced24a4ef0eb807ffc49d;p=vaadin-framework.git 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 --- 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"); }