summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-10-31 09:10:02 +0200
committerPekka Hyvönen <pekka@vaadin.com>2016-11-02 13:54:23 +0200
commit6f85627d1c9959f07847da84dc9bfd6eab8f1042 (patch)
treedc07bdf3e631d0b9eb956f023601874ee8ae241e /server
parente22ca2af047391e62195d2d3f07217ead8d88dd6 (diff)
downloadvaadin-framework-6f85627d1c9959f07847da84dc9bfd6eab8f1042.tar.gz
vaadin-framework-6f85627d1c9959f07847da84dc9bfd6eab8f1042.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). Backported from master branch (Vaadin 8). Change-Id: I5e62c09da579e9f6eb2a58a87253618d3f30b2e9
Diffstat (limited to 'server')
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/datefield/DateFieldDeclarativeTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/test/java/com/vaadin/tests/server/component/datefield/DateFieldDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/datefield/DateFieldDeclarativeTest.java
index 5db5bf2cd4..1ed0ad7c6b 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/datefield/DateFieldDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/datefield/DateFieldDeclarativeTest.java
@@ -45,7 +45,8 @@ public class DateFieldDeclarativeTest extends DeclarativeTestBase<DateField> {
}
private String getTimezoneDesign() {
- String timeZone = new SimpleDateFormat("Z").format(new Date());
+ String timeZone = new SimpleDateFormat("Z")
+ .format(new Date(2014 - 1900, 5 - 1, 5));
return String.format(
"<vaadin-date-field range-start=\"2014-05-05 00:00:00%1$s\" range-end=\"2014-06-05 00:00:00%1$s\" date-out-of-range-message=\"Please select a sensible date\" date-format=\"yyyy-MM-dd\" lenient show-iso-week-numbers parse-error-message=\"You are doing it wrong\" time-zone=\"GMT+05:00\" value=\"2014-05-15 00:00:00%1$s\"/>",
timeZone);