aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-09 08:26:33 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-09 08:26:33 -0400
commite827a0e280c5652a3f49cea9abf35ccbb9939bda (patch)
tree9803e901bda8fe7cf092bc1b0de5693d5c7b9851 /tests
parentf8f38e86c495f91e49b40006d4b8ad80c4b4f9eb (diff)
downloadjquery-ui-e827a0e280c5652a3f49cea9abf35ccbb9939bda.tar.gz
jquery-ui-e827a0e280c5652a3f49cea9abf35ccbb9939bda.zip
Revert "Datepicker: Added onSelect.apply() call to _setDate method if onSelect is defined. Fixed #6264 - Datepicker: onSelect does not fire when setDate is called"
This reverts commit effdd5d19c534f8445ebafe4212278c4366b0041.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/datepicker/datepicker_options.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js
index 0a3d5cdac..272af9dac 100644
--- a/tests/unit/datepicker/datepicker_options.js
+++ b/tests/unit/datepicker/datepicker_options.js
@@ -469,16 +469,6 @@ test('setDate', function() {
var dateAndTimeClone = new Date(2008, 3 - 1, 28, 1, 11, 0);
inp.datepicker('setDate', dateAndTimeToSet);
equals(dateAndTimeToSet.getTime(), dateAndTimeClone.getTime(), 'Date object passed should not be changed by setDate');
- // Test onSelect callback is executed when using setDate
- inp.datepicker('destroy');
- var testDate = null;
- inp.datepicker({
- onSelect: function(dateText, inst) {
- testDate = new Date(dateText);
- }
- });
- inp.datepicker('setDate', date2);
- equals(date2.getTime(), testDate.getTime(), 'onSelect is called after setDate');
});
test('altField', function() {