aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorDenis <denis@vaadin.com>2016-12-29 10:59:02 +0200
committerIlia Motornyi <elmot@vaadin.com>2016-12-29 10:59:02 +0200
commita25b690f1d188753fa0f202d862fe9f117e02b7e (patch)
tree5504b8806d884ff2309e24b329645abb10af30ab /uitest
parentd8aecac1b300c2223bedc65a0040af6bfc8edd44 (diff)
downloadvaadin-framework-a25b690f1d188753fa0f202d862fe9f117e02b7e.tar.gz
vaadin-framework-a25b690f1d188753fa0f202d862fe9f117e02b7e.zip
Correct DateField smoke test: use explicit locale.
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/smoke/DateFieldSmoke.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/smoke/DateFieldSmoke.java b/uitest/src/main/java/com/vaadin/tests/smoke/DateFieldSmoke.java
index 65f306b474..08956f5a95 100644
--- a/uitest/src/main/java/com/vaadin/tests/smoke/DateFieldSmoke.java
+++ b/uitest/src/main/java/com/vaadin/tests/smoke/DateFieldSmoke.java
@@ -35,6 +35,8 @@ public class DateFieldSmoke extends AbstractTestUIWithLog {
@Override
protected void setup(VaadinRequest request) {
+ setLocale(Locale.ENGLISH);
+
InlineDateField inline = new InlineDateField();
PopupDateField popup = new PopupDateField();
@@ -42,6 +44,9 @@ public class DateFieldSmoke extends AbstractTestUIWithLog {
popup.setValue(new Date(year, 11, 28));
inline.setValue(new Date(year, 11, 29));
+ popup.setDateFormat("MM/dd/yy");
+ inline.setDateFormat("MM/dd/yy");
+
popup.addValueChangeListener(event -> log(
"Popup value is : " + FORMAT.format(popup.getValue())));
inline.addValueChangeListener(event -> log(