WICKET-5286 o.a.w.extensions.markup.html.form.DateTextField should be applicable to HTML5 date input types
Do not disallow usage of <input type="text" .../> for DateTextFieldTest Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/5fb0c84d Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/5fb0c84d Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/5fb0c84d Branch: refs/heads/sandbox/WICKET-4686 Commit: 5fb0c84d57678054938677586c13db537970cb32 Parents: 6ac7a01 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Tue Dec 17 11:38:46 2013 +0200 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Tue Dec 17 11:38:46 2013 +0200 ---------------------------------------------------------------------- .../wicket/extensions/markup/html/form/DateTextFieldTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/5fb0c84d/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/form/DateTextFieldTest.java ---------------------------------------------------------------------- diff --git a/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/form/DateTextFieldTest.java b/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/form/DateTextFieldTest.java index b728f2f..fa18642 100644 --- a/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/form/DateTextFieldTest.java +++ b/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/form/DateTextFieldTest.java @@ -46,7 +46,7 @@ public class DateTextFieldTest extends WicketTestCase @Test public void validInputType() { - String[] validInputTypes = {"date", "datetime", "datetime-local", "month", "time", "week"}; + String[] validInputTypes = { "text", "date", "datetime", "datetime-local", "month", "time", "week"}; for (String validType : validInputTypes) { @@ -65,7 +65,7 @@ public class DateTextFieldTest extends WicketTestCase expectedException.expect(MarkupException.class); expectedException.expectMessage("Component [text] (path = [0:form:text]) must be applied to a tag" + - " with [type] attribute matching any of [date, datetime, datetime-local, month, time, week], " + + " with [type] attribute matching any of [text, date, datetime, datetime-local, month, time, week], " + "not [unsupportedType]"); tester.startPage(testPage); }
