Additionals: Update time method to allow single digit hour

Closes #1461
This commit is contained in:
Florent
2015-04-16 12:45:48 +02:00
committed by Jörn Zaefferer
parent c3e8f4d09e
commit c5ac242eef
2 changed files with 2 additions and 1 deletions

View File

@@ -855,6 +855,7 @@ test("time", function() {
var method = methodTest("time");
ok( method( "00:00" ), "Valid time, lower bound" );
ok( method( "23:59" ), "Valid time, upper bound" );
ok( method( "3:59" ), "Valid time, single digit hour" );
ok(!method( "12" ), "Invalid time" );
ok(!method( "29:59" ), "Invalid time" );
ok(!method( "00:60" ), "Invalid time" );