aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/datepicker
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-18 15:51:07 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-18 15:51:07 +0200
commitbdd2362754705628c7d5ad9a1b2edc8269c05e6c (patch)
tree692437cc3f129cd30797f93df520cb713cfb4909 /tests/unit/datepicker
parentfef60bd6cb4352d0106ae00753458112f1ab3b78 (diff)
parent2063a113d6dbae006413896a93d46a34ebc9b155 (diff)
downloadjquery-ui-bdd2362754705628c7d5ad9a1b2edc8269c05e6c.tar.gz
jquery-ui-bdd2362754705628c7d5ad9a1b2edc8269c05e6c.zip
Merge remote branch 'kzys/trac-6656'
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r--tests/unit/datepicker/datepicker.html1
-rw-r--r--tests/unit/datepicker/datepicker_events.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html
index fa346c6c9..d0c2c8c8c 100644
--- a/tests/unit/datepicker/datepicker.html
+++ b/tests/unit/datepicker/datepicker.html
@@ -49,6 +49,7 @@
<div id="qunit-fixture">
<p><input type="text" id="inp"/><input type="text" id="alt"/><div id="inl"></div></p>
+ <p><input type="text" id="inp2"/></p>
</div>
</body>
diff --git a/tests/unit/datepicker/datepicker_events.js b/tests/unit/datepicker/datepicker_events.js
index 84ca2f98e..bf48c9c8a 100644
--- a/tests/unit/datepicker/datepicker_events.js
+++ b/tests/unit/datepicker/datepicker_events.js
@@ -112,6 +112,11 @@ test('events', function() {
inp.val('02/04/2008').datepicker('show').
simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END});
equals(selectedDate, '', 'Callback close date - ctrl+end');
+
+ var inp2 = init('#inp2');
+ inp2.datepicker().datepicker('option', {onClose: callback}).datepicker('show');
+ inp.datepicker('show');
+ equals(selectedThis, inp2[0], 'Callback close this');
});
})(jQuery);