diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-18 23:36:31 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-08-22 05:31:31 +0000 |
commit | 6c7d2dafcdb9978175da549010f01fd1f2bfbad7 (patch) | |
tree | 6f6fd78d65ec97ad2ab7c4b2912a69612e2e6040 /compatibility-server | |
parent | 17b6232a8aa2b586539863dbce2c282117ffac88 (diff) | |
download | vaadin-framework-6c7d2dafcdb9978175da549010f01fd1f2bfbad7.tar.gz vaadin-framework-6c7d2dafcdb9978175da549010f01fd1f2bfbad7.zip |
Map <vaadin7> declarative prefix to com.vaadin.v7.ui
Change-Id: I3b529cf4c918eb6ce733fa6d126428d759c88345
Diffstat (limited to 'compatibility-server')
-rw-r--r-- | compatibility-server/src/test/java/com/vaadin/tests/server/component/datefield/LegacyDateFieldDeclarativeTest.java | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/tests/server/component/datefield/LegacyDateFieldDeclarativeTest.java b/compatibility-server/src/test/java/com/vaadin/tests/server/component/datefield/LegacyDateFieldDeclarativeTest.java index 97e944a0a7..3ac1b6af32 100644 --- a/compatibility-server/src/test/java/com/vaadin/tests/server/component/datefield/LegacyDateFieldDeclarativeTest.java +++ b/compatibility-server/src/test/java/com/vaadin/tests/server/component/datefield/LegacyDateFieldDeclarativeTest.java @@ -34,10 +34,8 @@ import com.vaadin.v7.ui.LegacyDateField; public class LegacyDateFieldDeclarativeTest extends DeclarativeTestBase<LegacyDateField> { - private static final String TAG_NAME = "com_vaadin_v7_ui-legacy-date-field"; - private String getYearResolutionDesign() { - return "<" + TAG_NAME + " resolution='year' value='2020'/>"; + return "<vaadin7-legacy-date-field resolution='year' value='2020'/>"; } private LegacyDateField getYearResolutionExpected() { @@ -50,8 +48,7 @@ public class LegacyDateFieldDeclarativeTest private String getTimezoneDesign() { String timeZone = new SimpleDateFormat("Z").format(new Date()); return String.format( - "<" + TAG_NAME - + " 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\"/>", + "<vaadin7-legacy-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); } @@ -102,8 +99,7 @@ public class LegacyDateFieldDeclarativeTest public void testReadOnlyValue() { Date date = new Date(2020 - 1900, 1 - 1, 1); String timeZone = new SimpleDateFormat("Z").format(date); - String design = "<" + TAG_NAME - + " readonly resolution='year' value='2020-01-01 00:00:00" + String design = "<vaadin7-legacy-date-field readonly resolution='year' value='2020-01-01 00:00:00" + timeZone + "'/>"; LegacyDateField df = new LegacyDateField(); df.setResolution(Resolution.YEAR); @@ -114,11 +110,4 @@ public class LegacyDateFieldDeclarativeTest testWrite(design, df); } - @Override - public LegacyDateField testRead(String design, LegacyDateField expected) { - return super.testRead( - "<html><head><meta charset='UTF-8' name='package-mapping' content='com_vaadin_v7_ui:com.vaadin.v7.ui'></head> " - + design + "</html>", - expected); - } } |