]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make test more reliable by updating description which does not update the DOM
authorArtur Signell <artur@vaadin.com>
Mon, 4 Nov 2013 20:24:49 +0000 (22:24 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 4 Nov 2013 20:32:04 +0000 (20:32 +0000)
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

index 1a9bf16de65a4247baca0bac91440475f7c54c48..3b72424b3215b01f9e30de784ec1fdfab28c5376 100644 (file)
@@ -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");
                     }