diff options
author | Denis Anisimov <denis@vaadin.com> | 2016-10-31 09:10:02 +0200 |
---|---|---|
committer | Denis Anisimov <denis@vaadin.com> | 2016-10-31 09:10:02 +0200 |
commit | 66724b35c5d82cc084974db28b84fc41e79bb8f3 (patch) | |
tree | c8ea32ffe90f4cd14f2cbd21daee91ed583a94cc /uitest | |
parent | 1e978a6ba0924c240803543a31d024b7c649f4ce (diff) | |
download | vaadin-framework-66724b35c5d82cc084974db28b84fc41e79bb8f3.tar.gz vaadin-framework-66724b35c5d82cc084974db28b84fc41e79bb8f3.zip |
Date/time issues are fixed in the tests.
- legacy DateField declarative format tests are fixed (day light saving
time is taken into account).
- CalendarMonthViewDndEvent UI because you are not supposed to work on
Sundays (when the test is broken).
Change-Id: If7ddf238a7fab104514211df4a12fa6d071f5af2
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java b/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java index 09739f1f73..2300268f1a 100644 --- a/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java +++ b/uitest/src/main/java/com/vaadin/tests/components/calendar/CalendarMonthViewDndEvent.java @@ -40,6 +40,11 @@ public class CalendarMonthViewDndEvent extends AbstractReindeerTestUI { protected void setup(VaadinRequest request) { final Calendar calendar = new Calendar("Test calendar"); final java.util.Calendar cal = getAdjustedCalendar(); + if (cal.get( + java.util.Calendar.DAY_OF_WEEK) == java.util.Calendar.SUNDAY) { + // don't use Sunday: no space to move event on the left + cal.add(java.util.Calendar.DAY_OF_MONTH, 1); + } Date from = cal.getTime(); |