summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-12-18 08:40:27 +0000
committerVaadin Code Review <review@vaadin.com>2012-12-18 08:40:27 +0000
commit33933478c6948cca467d0aee615428208ea7d49d (patch)
treeb38ab3efcaa7226fc8aadbcf85542c4b3cdbcebe /uitest
parenta27f7f16cf803b86e0dae175bb960793a877b76c (diff)
parent7b22cda053287efeaebf45f6a1b3ad448a46f398 (diff)
downloadvaadin-framework-33933478c6948cca467d0aee615428208ea7d49d.tar.gz
vaadin-framework-33933478c6948cca467d0aee615428208ea7d49d.zip
Merge changes Ide0a7e28,I78da2c2c
* changes: Ugly hacks to make tests screenshot compatible Fixed IE scrollbar issues for most if not all components
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);