r3180 committed - datepicker refactor: added more visual tests and changed mime-types to...

r3180 committed - datepicker refactor: added more visual tests and changed mime-types to...


Revision: 3180
Author: pazu2k@gmail.com
Date: Mon Aug 31 02:29:32 2009
Log: datepicker refactor: added more visual tests and changed mime-types to
text/html
http://code.google.com/p/jquery-ui/source/detail?r=3180
Added:

/branches/dev/datepicker/tests/visual/datepicker/datepicker_localisation.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_altField.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_altFormat.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_appendText.html
Modified:

/branches/dev/datepicker/tests/visual/datepicker/datepicker_event_beforeShow.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_event_beforeShowDay.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_event_onChangeMonthYear.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_event_onClose.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_event_onSelect.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_destroy.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_dialog.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_disable.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_enable.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_getDate.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_hide.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_isDisabled.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_option.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_setDate.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_method_show.html

/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_showButtonPanel.html
/branches/dev/datepicker/tests/visual/datepicker/multimonth.html
=======================================
--- /dev/null
+++
/branches/dev/datepicker/tests/visual/datepicker/datepicker_localisation.html    
Mon Aug 31 02:29:32 2009
@@ -0,0 +1,85 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>Datepicker Visual Test : Datepicker Localised</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() {
+        // default to french
+        $.getScript('../../../ui/i18n/ui.datepicker-fr.js');
+        $('#datepicker').datepicker();
+
+        $('#locale').change(function() {
+            $.getScript('../../../ui/i18n/ui.datepicker-'+$(this).val()+'.js');
+            $('#datepicker').datepicker('option', $.extend({showMonthAfterYear:
false}, $.ui.datepicker.regional[$(this).val()]));
+        });
+    });
+    </script>
+</head>
+<body>
+
+<div class="ui-widget">
+    

Date: <input type="text" id="datepicker">


+
+    

<select id="locale">
+
+        <option value="sq">Albanian (Gjuha shqipe)</option>
+        <option value="ar">Arabic
(&#8235;(&#1604;&#1593;&#1585;&#1576;&#1610;</option>
+
+        <option value="hy">Armenian
(&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;)</option>
+        <option value="bg">Bulgarian
(&#1073;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080;
&#1077;&#1079;&#1080;&#1082;)</option>
+        <option value="ca">Catalan (Catal&agrave;)</option>
+        <option value="zh-CN">Chinese Simplified
(&#31616;&#20307;&#20013;&#25991;)</option>
+
+        <option value="zh-TW">Chinese Traditional
(&#32321;&#39636;&#20013;&#25991;)</option>
+        <option value="hr">Croatian (Hrvatski jezik)</option>
+        <option value="cs">Czech (Ce&ouml;tina)</option>
+        <option value="da">Danish (Dansk)</option>
+        <option value="nl">Dutch (Nederlands)</option>
+
+        <option value="eo">Esperanto</option>
+        <option value="fa">Farsi/Persian
(&#8235;(&#1601;&#1575;&#1585;&#1587;&#1740;</option>
+        <option value="fi">Finnish (suomi)</option>
+        <option value="fr" selected="selected">French (Fran&ccedil;ais)</option>
+        <option value="de">German (Deutsch)</option>
+
+        <option value="el">Greek
(&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;)</option>
+        <option value="he">Hebrew
(&#8235;(&#1506;&#1489;&#1512;&#1497;&#1514;</option>
+        <option value="hu">Hungarian (Magyar)</option>
+        <option value="is">Icelandic (&Otilde;slenska)</option>
+        <option value="id">Indonesian (Bahasa Indonesia)</option>
+
+        <option value="it">Italian (Italiano)</option>
+        <option value="ja">Japanese (&#26085;&#26412;&#35486;)</option>
+        <option value="ko">Korean (&#54620;&#44397;&#50612;)</option>
+        <option value="lv">Latvian (Latvie&ouml;u Valoda)</option>
+        <option value="lt">Lithuanian (lietuviu kalba)</option>
+
+        <option value="ms">Malaysian (Bahasa Malaysia)</option>
+        <option value="no">Norwegian (Norsk)</option>
+        <option value="pl">Polish (Polski)</option>
+        <option value="pt-BR">Portuguese/Brazilian (Portugu&ecirc;s)</option>
+        <option value="ro">Romanian (Rom&acirc;n&#259;)</option>
+
+        <option value="ru">Russian
(&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;)</option>
+        <option value="sr">Serbian (&#1089;&#1088;&#1087;&#1089;&#1082;&#1080;
&#1112;&#1077;&#1079;&#1080;&#1082;)</option>
+        <option value="sr-SR">Serbian (srpski jezik)</option>
+        <option value="sk">Slovak (Slovencina)</option>
+        <option value="sl">Slovenian (Slovenski Jezik)</option>
+
+        <option value="es">Spanish (Espa&ntilde;ol)</option>
+        <option value="sv">Swedish (Svenska)</option>
+        <option value="th">Thai
(&#3616;&#3634;&#3625;&#3634;&#3652;&#3607;&#3618;)</option>
+        <option value="tr">Turkish (T&uuml;rk&ccedil;e)</option>
+        <option value="uk">Ukranian
(&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;)</option>
+
+    </select>

































































+
+</div>
+
+</body>
+</html>
=======================================
--- /dev/null
+++
/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_altField.html    
Mon Aug 31 02:29:32 2009
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>Datepicker Visual Test : Datepicker option altField</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() {
+        $('#datepicker').datepicker({
+            altField: '#actualDate'
+        });
+    });
+    </script>
+</head>
+<body>
+
+

<label for="datepicker">select date:</label> <input id="datepicker">


+

<label for="actualDate">actual date:</label> <input id="actualDate"
/>


+
+</body>
+</html>
=======================================
--- /dev/null
+++
/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_altFormat.html    
Mon Aug 31 02:29:32 2009
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>Datepicker Visual Test : Datepicker option altFormat</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() {
+        $('#datepicker').datepicker({
+            altFormat: 'yy-mm-dd',
+            altField: '#actualDate'
+        });
+    });
+    </script>
+</head>
+<body>
+
+

<label for="datepicker">select date:</label> <input id="datepicker">


+

<label for="actualDate">actual date:</label> <input id="actualDate"
/>


+
+</body>
+</html>
=======================================
--- /dev/null
+++
/branches/dev/datepicker/tests/visual/datepicker/datepicker_option_appendText.html    
Mon Aug 31 02:29:32 2009
@@ -0,0 +1,23 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>Datepicker Visual Test : Datepicker option appendText</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() {
+        $('#datepicker').datepicker({
+            appendText: ' (mm/dd/yyyy)'
+        });
+    });
+    </script>
+</head>
+<body>
+
+

<label for="datepicker">select date:</label> <input id="datepicker">


+
+</body>
+</html>
=======================================
--- /branches/dev/datepicker/tests/visual/datepicker/multimonth.html    Mon
Mar 2 01:32:17 2009
+++ /branches/dev/datepicker/tests/visual/datepicker/multimonth.html    Mon
Aug 31 02:29:32 2009
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
-    <title>Datepicker Visual Test : Default</title>
+    <title>Datepicker Visual Test : Datepicker Multi-month</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>