From c3508feeb4454f783acacb007873a658240f5efa Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 2 Oct 2009 13:14:00 +0000 Subject: [PATCH] Test case for #3455 svn changeset:9047/svn branch:6.1 --- .../datefield/DisabledDateFieldWidth | 52 +++++++++++++++++++ .../datefield/DisabledDateFieldWidth.java | 42 +++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth create mode 100644 src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java diff --git a/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth b/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth new file mode 100644 index 0000000000..48b11e1f7c --- /dev/null +++ b/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth @@ -0,0 +1,52 @@ + + + + + + +DisabledDateFieldWidth + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DisabledDateFieldWidth
open/run/com.vaadin.tests.components.datefield.DisabledDateFieldWidth
waitForVaadin
clickvaadin=runcomvaadintestscomponentsdatefieldDisabledDateFieldWidth::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VGridLayout[0]/AbsolutePanel[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]
waitForVaadin
clickvaadin=runcomvaadintestscomponentsdatefieldDisabledDateFieldWidth::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VGridLayout[0]/AbsolutePanel[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]
waitForVaadin
screenCapture
+ + diff --git a/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java b/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java new file mode 100644 index 0000000000..3f26e106ee --- /dev/null +++ b/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java @@ -0,0 +1,42 @@ +package com.vaadin.tests.components.datefield; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Button; +import com.vaadin.ui.DateField; +import com.vaadin.ui.GridLayout; +import com.vaadin.ui.Button.ClickEvent; + +public class DisabledDateFieldWidth extends TestBase { + @Override + public void setup() { + + final DateField dateField1 = new DateField("DateField"); + dateField1.setResolution(DateField.RESOLUTION_YEAR); + dateField1.setEnabled(false); + + Button button = new Button("Repaint datefield", + new Button.ClickListener() { + public void buttonClick(ClickEvent event) { + dateField1.requestRepaint(); + } + }); + + GridLayout gl = new GridLayout(3, 1); + gl.addComponent(dateField1); + gl.addComponent(button); + + addComponent(gl); + } + + @Override + protected String getDescription() { + // TODO Auto-generated method stub + return null; + } + + @Override + protected Integer getTicketNumber() { + // TODO Auto-generated method stub + return null; + } +} -- 2.39.5