summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2020-07-03 13:17:34 +0300
committerGitHub <noreply@github.com>2020-07-03 13:17:34 +0300
commit3640be47c3b21229c55a91b421aec3bbebd425fd (patch)
treee6128d0323f4dbb03b51c5f08853e312084dff82 /uitest
parent40570e17319d96adcfebaaa8c98b1e16f58902f0 (diff)
downloadvaadin-framework-3640be47c3b21229c55a91b421aec3bbebd425fd.tar.gz
vaadin-framework-3640be47c3b21229c55a91b421aec3bbebd425fd.zip
Add support for "ww" in date format (#12037)
Calculate number of the week in the year based on Date. Note, support for "ww" is missing from GWT DateTimeFormat and java.util.Calendar is not supported in GWT, hence DIY method is needed. Fixes: #10603
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java b/uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java
index 9d7d75efb8..3a5e57273c 100644
--- a/uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java
+++ b/uitest/src/main/java/com/vaadin/tests/components/datefield/AbstractDateFieldTest.java
@@ -64,6 +64,7 @@ public abstract class AbstractDateFieldTest<T extends AbstractLocalDateField>
getDatePattern(new Locale("fi", "FI"), DateFormat.MEDIUM));
options.put(getDatePattern(new Locale("fi", "FI"), DateFormat.SHORT),
getDatePattern(new Locale("fi", "FI"), DateFormat.SHORT));
+ options.put("ww yyyy", "ww yyyy");
createSelectAction("Date format", category, options, "-",
dateFormatCommand);