diff options
author | Artur Signell <artur@vaadin.com> | 2012-12-14 15:31:11 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-12-17 21:46:54 +0200 |
commit | 7b22cda053287efeaebf45f6a1b3ad448a46f398 (patch) | |
tree | 569de85437d869fff1f92d41de79c93dce30d795 /uitest | |
parent | b7aa5ead03310a45587284b3cfec64f56613fbd6 (diff) | |
download | vaadin-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.java | 13 |
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(" "); + if (getBrowser().isIE() + && getBrowser().getBrowserMajorVersion() == 9) { + label.setHeight("13.8px"); + } else { + label.setHeight("15px"); + } + } + label.setWidth("100%"); window.addComponent(label); |