aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/datepicker
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-03-18 01:51:56 +0000
committerRichard Worth <rdworth@gmail.com>2009-03-18 01:51:56 +0000
commit020ed12837e0e5dbf4ca78a5fec4b1b00a9daa62 (patch)
treeedd0dd87e18da7bb4b001dda10803a83a2d551dd /tests/visual/datepicker
parent392efc34b3b4f2a2790d84f0f0b102810441722c (diff)
downloadjquery-ui-020ed12837e0e5dbf4ca78a5fec4b1b00a9daa62.tar.gz
jquery-ui-020ed12837e0e5dbf4ca78a5fec4b1b00a9daa62.zip
#4240 - Added visual test page
Diffstat (limited to 'tests/visual/datepicker')
-rw-r--r--tests/visual/datepicker/calendar.gifbin0 -> 127 bytes
-rw-r--r--tests/visual/datepicker/datepicker_ticket_4240.html53
2 files changed, 53 insertions, 0 deletions
diff --git a/tests/visual/datepicker/calendar.gif b/tests/visual/datepicker/calendar.gif
new file mode 100644
index 000000000..8526cf5d1
--- /dev/null
+++ b/tests/visual/datepicker/calendar.gif
Binary files differ
diff --git a/tests/visual/datepicker/datepicker_ticket_4240.html b/tests/visual/datepicker/datepicker_ticket_4240.html
new file mode 100644
index 000000000..95492ffd0
--- /dev/null
+++ b/tests/visual/datepicker/datepicker_ticket_4240.html
@@ -0,0 +1,53 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>Datepicker Visual Test : Datepicker ticket #4240</title>
+ <link rel="stylesheet" href="../visual.css" type="text/css" />
+ <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
+ <script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.datepicker.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#destroystart").click(function() {
+ $("#startdate").datepicker('destroy');
+ });
+ $("#destroyend").click(function() {
+ $("#enddate").datepicker('destroy');
+ });
+ $("#disablestart").click(function() {
+ $("#startdate").datepicker('disable');
+ });
+ $("#disableend").click(function() {
+ $("#enddate").datepicker('disable');
+ });
+ $("#enablestart").click(function() {
+ $("#startdate").datepicker('enable');
+ });
+ $("#enableend").click(function() {
+ $("#enddate").datepicker('enable');
+ });
+ });
+ </script>
+</head>
+<body>
+
+<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/4240">#4240 - Datepicker destroy affects other datepickers</a></h1>
+
+ <input type="text" id="startdate" />
+ <input type="text" id="enddate" />
+ <br /> <br />
+ <input type="button" value="Init Startdate" onclick="$('#startdate').datepicker({showOn: 'both', buttonImage:'calendar.gif', buttonImageOnly:'true'});" />
+ <input type="button" value="Init Enddate" onclick="$('#enddate').datepicker({showOn: 'both', buttonImage:'calendar.gif', buttonImageOnly:'true'});" />
+ <br /> <br />
+ <input type="button" id="destroystart" value="Destroy Startdate" />
+ <input type="button" id="destroyend" value="Destroy Enddate" />
+ <br /> <br />
+ <input type="button" id="enablestart" value="Enable Startdate" />
+ <input type="button" id="enableend" value="Enable Enddate" />
+ <br /> <br />
+ <input type="button" id="disablestart" value="Disable Startdate" />
+ <input type="button" id="disableend" value="Disable Enddate" />
+
+</body>
+</html>