diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-24 09:00:50 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-24 09:00:50 +0300 |
commit | bd576ade92607669fa7806fed18e90789027a80d (patch) | |
tree | ff2946a941dd1f1962a3c3bf54bb2d9b625b67c9 | |
parent | ad29c11f1f75205d13084d488e36975d23634c8a (diff) | |
download | vaadin-framework-bd576ade92607669fa7806fed18e90789027a80d.tar.gz vaadin-framework-bd576ade92607669fa7806fed18e90789027a80d.zip |
Do not add an empty description label to test case if testcase
description is null (generates an empty line with HTML5 doctype) #8294
-rw-r--r-- | uitest/src/com/vaadin/tests/components/TestBase.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/components/TestBase.java b/uitest/src/com/vaadin/tests/components/TestBase.java index 3260c52003..265c74df59 100644 --- a/uitest/src/com/vaadin/tests/components/TestBase.java +++ b/uitest/src/com/vaadin/tests/components/TestBase.java @@ -14,9 +14,11 @@ public abstract class TestBase extends AbstractTestCase { setMainWindow(window); window.getContent().setSizeFull(); - Label label = new Label(getDescription(), ContentMode.HTML); - label.setWidth("100%"); - window.getContent().addComponent(label); + if (getDescription() != null) { + Label label = new Label(getDescription(), ContentMode.HTML); + label.setWidth("100%"); + window.getContent().addComponent(label); + } layout = new VerticalLayout(); window.getContent().addComponent(layout); |