diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2014-09-22 13:28:29 +0300 |
---|---|---|
committer | Markus Koivisto <markus@vaadin.com> | 2014-10-14 17:59:09 +0300 |
commit | 1ec43bde1ced96cb9f2abb5157092c9516e839f2 (patch) | |
tree | 3ecac73754ed47cc34347cee88868ab1cb5b23c2 /uitest | |
parent | b6e66dd76ec744b5e779905060eeaa29783352d2 (diff) | |
download | vaadin-framework-1ec43bde1ced96cb9f2abb5157092c9516e839f2.tar.gz vaadin-framework-1ec43bde1ced96cb9f2abb5157092c9516e839f2.zip |
Add outside-range styles for DateField. (#14711)
Change-Id: I0f85fb72605c5500b0a835ddf715d60bc9c7a524
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/valo/DateFields.java | 9 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/valo/DateFields.java b/uitest/src/com/vaadin/tests/themes/valo/DateFields.java index 5dca5ab9af..5a752cd985 100644 --- a/uitest/src/com/vaadin/tests/themes/valo/DateFields.java +++ b/uitest/src/com/vaadin/tests/themes/valo/DateFields.java @@ -190,6 +190,7 @@ public class DateFields extends VerticalLayout implements View { date = new InlineDateField("Date picker"); setDate(date); + setDateRange(date); row.addComponent(date); date = new InlineDateField("Date picker with week numbers"); @@ -211,6 +212,14 @@ public class DateFields extends VerticalLayout implements View { row.addComponent(form); } + private void setDateRange(DateField date) { + date.setRangeStart(getDefaultDate()); + + Date endDate = getDefaultDate(); + endDate.setMonth(endDate.getMonth() + 1); + date.setRangeEnd(endDate); + } + private void setDate(DateField date) { date.setValue(getDefaultDate()); } diff --git a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java index 20c74bff5e..d4ddf2dcf9 100644 --- a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java +++ b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java @@ -64,7 +64,7 @@ public class ValoThemeUITest extends MultiBrowserTest { // Note that this can look broken in IE9 because of some browser // rendering issue... The problem seems to be in the customized // horizontal layout in the test app - compareScreen("datefields-with-disabled"); + compareScreen("datefields-with-range"); } @Test |