aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-04 14:09:37 -0700
committerScott González <scott.gonzalez@gmail.com>2011-05-04 14:09:37 -0700
commit116acb4cb28c4a091547648132316b7f8e9e6072 (patch)
tree2f3e70069b1874873e18095f149771889061cb2f /tests
parent511b86b31efd16e2966a1155cdb47b951f01c204 (diff)
parentfc97ccd398b60525fd9e4c0e9aa1f51048984394 (diff)
downloadjquery-ui-116acb4cb28c4a091547648132316b7f8e9e6072.tar.gz
jquery-ui-116acb4cb28c4a091547648132316b7f8e9e6072.zip
Merge pull request #200 from kzys/trac-6704-2
Fixed #6704 - Display overflow when multiple datepickers have different numberOfMonths.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/datepicker/datepicker_core.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/datepicker/datepicker_core.js b/tests/unit/datepicker/datepicker_core.js
index 78f78ce38..badb837ed 100644
--- a/tests/unit/datepicker/datepicker_core.js
+++ b/tests/unit/datepicker/datepicker_core.js
@@ -116,8 +116,16 @@ test('baseStructure', function() {
ok(child.is('div.ui-datepicker-group') && child.is('div.ui-datepicker-group-last'), 'Structure multi [2] - second month division');
child = dp.children(':eq(2)');
ok(child.is('div.ui-datepicker-row-break'), 'Structure multi [2] - row break');
+ ok(dp.is('.ui-datepicker-multi-2'), 'Structure multi [2] - multi-2');
inp.datepicker('hide').datepicker('destroy');
+ // Multi-month 3
+ inp = init('#inp', {numberOfMonths: 3});
+ inp.focus();
+ ok(dp.is('.ui-datepicker-multi-3'), 'Structure multi [3] - multi-3');
+ ok(! dp.is('.ui-datepicker-multi-2'), 'Structure multi [3] - Trac #6704');
+ inp.datepicker('hide').datepicker('destroy');
+
// Multi-month [2, 2]
inp = init('#inp', {numberOfMonths: [2, 2]});
inp.focus();