Skip to content

Commit 5074bf3

Browse files
committed
Datepicker: Added visual test for #5676 - DatePicker Dialog defaultDate incorrect behaviour
1 parent 4c3899c commit 5074bf3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Datepicker Visual Test : Datepicker ticket #5676</title>
6+
<link href="../visual.css" type="text/css" rel="stylesheet" />
7+
<link href="../../../themes/base/jquery.ui.all.css" type="text/css" rel="stylesheet">
8+
<script src="../../../jquery-1.4.2.js"></script>
9+
<script src="../../../ui/jquery.ui.core.js"></script>
10+
<script src="../../../ui/jquery.ui.widget.js"></script>
11+
<script src="../../../ui/jquery.ui.datepicker.js"></script>
12+
<script>
13+
$(function() {
14+
15+
$('.datepicker').datepicker({
16+
defaultDate: +7
17+
}).focus();
18+
19+
});
20+
</script>
21+
</head>
22+
<body>
23+
24+
<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/5676">#5676 - DatePicker Dialog defaultDate incorrect behaviour</a></h1>
25+
26+
<div class="datepicker"></div>
27+
<input class="datepicker" />
28+
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)