summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-12-14 15:31:11 +0200
committerArtur Signell <artur@vaadin.com>2012-12-17 21:46:54 +0200
commit7b22cda053287efeaebf45f6a1b3ad448a46f398 (patch)
tree569de85437d869fff1f92d41de79c93dce30d795 /uitest
parentb7aa5ead03310a45587284b3cfec64f56613fbd6 (diff)
downloadvaadin-framework-7b22cda053287efeaebf45f6a1b3ad448a46f398.tar.gz
vaadin-framework-7b22cda053287efeaebf45f6a1b3ad448a46f398.zip
Ugly hacks to make tests screenshot compatible
Change-Id: Ide0a7e2832e1a3a63edc015367e49912c6b77e0e
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/TestBase.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/TestBase.java b/uitest/src/com/vaadin/tests/components/TestBase.java
index b500a1144b..d267d80669 100644
--- a/uitest/src/com/vaadin/tests/components/TestBase.java
+++ b/uitest/src/com/vaadin/tests/components/TestBase.java
@@ -15,6 +15,19 @@ public abstract class TestBase extends AbstractTestCase {
window.getContent().setSizeFull();
Label label = new Label(getDescription(), ContentMode.HTML);
+ if (label.getValue() == null || "".equals(label.getValue())) {
+ // This is only an ugly hack to be screenshot compatible to be able
+ // to detect real problems when introducing IE font-size/line-height
+ // fixes
+ label.setValue("&nbsp;");
+ if (getBrowser().isIE()
+ && getBrowser().getBrowserMajorVersion() == 9) {
+ label.setHeight("13.8px");
+ } else {
+ label.setHeight("15px");
+ }
+ }
+
label.setWidth("100%");
window.addComponent(label);