]> source.dussan.org Git - vaadin-framework.git/commitdiff
Sets the locale in the test case. #12460
authorJonatan Kronqvist <jonatan@vaadin.com>
Tue, 3 Sep 2013 06:37:26 +0000 (09:37 +0300)
committerJonatan Kronqvist <jonatan@vaadin.com>
Tue, 3 Sep 2013 06:37:26 +0000 (09:37 +0300)
TestHideTimeAndSeparator didn't specify a locale, which
caused it to fail if the locale on the system where it
ran was different from the one on the system where the
test was created.

Change-Id: I44de92c68954eac425308eeaf7e07e76c717f2bf

uitest/src/com/vaadin/tests/components/calendar/TestHideTimeAndSeparator.java

index d82e75c94dcb07d91d229f8a7f500a481d2965e4..b8b55048f92208a841bdee9e17961e8c4a5e902c 100644 (file)
@@ -10,6 +10,7 @@ import com.vaadin.ui.components.calendar.event.CalendarEventProvider;
 import java.util.Arrays;
 import java.util.Date;
 import java.util.List;
+import java.util.Locale;
 
 @Theme("tests-calendar")
 public class TestHideTimeAndSeparator extends AbstractTestUI {
@@ -70,6 +71,8 @@ public class TestHideTimeAndSeparator extends AbstractTestUI {
         cal.setWidth("100%");
         cal.setHeight("500px");
 
+        cal.setLocale(Locale.US);
+
         cal.addEvent(shortEventHidden);
         cal.addEvent(longEventHidden);
         cal.addEvent(shortEvent);