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
(‫(لعربي</option>
+
+ <option value="hy">Armenian
(Հայերեն)</option>
+ <option value="bg">Bulgarian
(български
език)</option>
+ <option value="ca">Catalan (Català)</option>
+ <option value="zh-CN">Chinese Simplified
(简体中文)</option>
+
+ <option value="zh-TW">Chinese Traditional
(繁體中文)</option>
+ <option value="hr">Croatian (Hrvatski jezik)</option>
+ <option value="cs">Czech (Ceötina)</option>
+ <option value="da">Danish (Dansk)</option>
+ <option value="nl">Dutch (Nederlands)</option>
+
+ <option value="eo">Esperanto</option>
+ <option value="fa">Farsi/Persian
(‫(فارسی</option>
+ <option value="fi">Finnish (suomi)</option>
+ <option value="fr" selected="selected">French (Français)</option>
+ <option value="de">German (Deutsch)</option>
+
+ <option value="el">Greek
(Ελληνικά)</option>
+ <option value="he">Hebrew
(‫(עברית</option>
+ <option value="hu">Hungarian (Magyar)</option>
+ <option value="is">Icelandic (Õslenska)</option>
+ <option value="id">Indonesian (Bahasa Indonesia)</option>
+
+ <option value="it">Italian (Italiano)</option>
+ <option value="ja">Japanese (日本語)</option>
+ <option value="ko">Korean (한국어)</option>
+ <option value="lv">Latvian (Latvieö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ês)</option>
+ <option value="ro">Romanian (Română)</option>
+
+ <option value="ru">Russian
(Русский)</option>
+ <option value="sr">Serbian (српски
језик)</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ñol)</option>
+ <option value="sv">Swedish (Svenska)</option>
+ <option value="th">Thai
(ภาษาไทย)</option>
+ <option value="tr">Turkish (Türkçe)</option>
+ <option value="uk">Ukranian
(Українська)</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>