diff options
author | Felix Nagel <info@felixnagel.com> | 2013-02-09 03:29:10 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-02-09 03:29:10 +0100 |
commit | a7b4f29cea06607264c2ba98cd93f4e039cce5bd (patch) | |
tree | 1ac9e210ce8fd16a85cb1d3283983475b27437ed /tests/unit/datepicker | |
parent | b81bb0b983687b1efc09577bf128b8a5b7aa5d7b (diff) | |
parent | ab408c9b82430e7a65a9269441cc0c0e2af95770 (diff) | |
download | jquery-ui-a7b4f29cea06607264c2ba98cd93f4e039cce5bd.tar.gz jquery-ui-a7b4f29cea06607264c2ba98cd93f4e039cce5bd.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r-- | tests/unit/datepicker/all.html | 2 | ||||
-rw-r--r-- | tests/unit/datepicker/datepicker_options.js | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/unit/datepicker/all.html b/tests/unit/datepicker/all.html index a07a5d36c..c6854ef9c 100644 --- a/tests/unit/datepicker/all.html +++ b/tests/unit/datepicker/all.html @@ -4,7 +4,7 @@ <meta charset="utf-8"> <title>jQuery UI Datepicker Test Suite</title> - <script src="../../../jquery-1.9.0.js"></script> + <script src="../../../jquery-1.9.1.js"></script> <link rel="stylesheet" href="../../../external/qunit.css"> <link rel="stylesheet" href="../qunit-composite.css"> diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js index dac2262dc..1efd854a9 100644 --- a/tests/unit/datepicker/datepicker_options.js +++ b/tests/unit/datepicker/datepicker_options.js @@ -782,6 +782,21 @@ test("callbacks", function() { inp.datepicker("hide").datepicker("destroy"); }); +test("beforeShowDay - tooltips with quotes", function() { + expect( 1 ); + var inp, dp; + inp = TestHelpers.datepicker.init("#inp", { + beforeShowDay: function() { + return [ true, "", "'" ]; + } + }); + dp = $("#ui-datepicker-div"); + + inp.datepicker("show"); + equal( dp.find( ".ui-datepicker-calendar td:contains('9')").attr( "title" ), "'" ); + inp.datepicker("hide").datepicker("destroy"); +}); + test("localisation", function() { expect( 24 ); var dp, month, day, date, |