From fd8bb6c330ddfe249495260be188f7f74feb4585 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 29 Nov 2011 15:05:25 +0000 Subject: [PATCH] Test for #7978 svn changeset:22180/svn branch:6.7 --- .../button/ButtonsInHorizontalLayout.html | 47 +++++++++++++++++++ .../button/ButtonsInHorizontalLayout.java | 37 +++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.html create mode 100644 tests/testbench/com/vaadin/tests/components/button/ButtonsInHorizontalLayout.java 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; + } + +} -- 2.39.5