From: Artur Signell Date: Tue, 29 Nov 2011 15:05:25 +0000 (+0000) Subject: Test for #7978 X-Git-Tag: 7.0.0.alpha1~225^2~3^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd8bb6c330ddfe249495260be188f7f74feb4585;p=vaadin-framework.git Test for #7978 svn changeset:22180/svn branch:6.7 --- diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html new file mode 100644 index 0000000000..cb3b5e66ee --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html @@ -0,0 +1,47 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.button.ButtonsInHorizontalLayout?restartApplication&theme=reindeer
screenCapturereindeer
open/run/com.vaadin.tests.components.button.ButtonsInHorizontalLayout?restartApplication&theme=runo
screenCaptureruno
open/run/com.vaadin.tests.components.button.ButtonsInHorizontalLayout?restartApplication&theme=chameleon
screenCapturechameleon
+ + diff --git a/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java new file mode 100644 index 0000000000..83eff1bdea --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java @@ -0,0 +1,37 @@ +package com.vaadin.tests.components.button; + +import com.vaadin.tests.components.AbstractTestCase; +import com.vaadin.ui.Button; +import com.vaadin.ui.HorizontalLayout; +import com.vaadin.ui.VerticalLayout; +import com.vaadin.ui.Window; + +public class ButtonsInHorizontalLayout extends AbstractTestCase { + + @Override + public void init() { + VerticalLayout content = new VerticalLayout(); + content.setMargin(true); + HorizontalLayout layout = new HorizontalLayout(); + layout.setSpacing(true); + layout.addComponent(new Button( + "Look at me in IE7 or IE8 in compatibility mode")); + layout.addComponent(new Button( + "Look at me in IE7 or IE8 in compatibility mode")); + layout.addComponent(new Button( + "Look at me in IE7 or IE8 in compatibility mode")); + content.addComponent(layout); + setMainWindow(new Window("", content)); + } + + @Override + protected String getDescription() { + return "Tests for rendering of buttons in a HorizontalLayout"; + } + + @Override + protected Integer getTicketNumber() { + return 7978; + } + +}