diff options
author | Artur Signell <artur.signell@itmill.com> | 2012-02-06 13:42:51 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2012-02-06 13:42:51 +0000 |
commit | e11a3a7f2db4766d55073367f57a5c4627dcb9b7 (patch) | |
tree | 67d651533bb76013a3d6b196e003bc2b61668437 /tests | |
parent | 7d79fe25b65971363dc70eedc5cf75513352cacf (diff) | |
download | vaadin-framework-e11a3a7f2db4766d55073367f57a5c4627dcb9b7.tar.gz vaadin-framework-e11a3a7f2db4766d55073367f57a5c4627dcb9b7.zip |
[merge from 6.7] Fixed resolution to sec for easier merges to 7.0
svn changeset:22934/svn branch:6.8
Diffstat (limited to 'tests')
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldPopupOffScreen.java b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldPopupOffScreen.java index 122fd4347f..3521e8b95e 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/DateFieldPopupOffScreen.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/DateFieldPopupOffScreen.java @@ -1,6 +1,7 @@ package com.vaadin.tests.components.datefield; -import java.sql.Date; +import java.util.Date; +import java.util.Locale; import com.vaadin.tests.components.AbstractTestCase; import com.vaadin.ui.Alignment; @@ -55,6 +56,8 @@ public class DateFieldPopupOffScreen extends AbstractTestCase { private DateField createDateField() { DateField df = new DateField(); + df.setLocale(new Locale("fi")); + df.setResolution(DateField.RESOLUTION_SEC); df.setDescription("This is a long, multiline tooltip.<br/>It should always be on screen so it can be read."); df.setValue(new Date(1000000L)); return df; diff --git a/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java b/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java index 517bf2ee76..88542751c3 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/WidthRecalculationOnEnableStateChange.java @@ -14,6 +14,7 @@ public class WidthRecalculationOnEnableStateChange extends TestBase { final DateField df = new DateField(); df.setValue(new Date(1203910239L)); + df.setResolution(DateField.RESOLUTION_SEC); df.setWidth("200px"); df.addStyleName("enabled-readonly-styled"); addComponent(df); |