mirror of
https://github.com/wekan/wekan.git
synced 2026-03-11 16:12:34 +01:00
Update Bootstrap Datepicker version to 1.10.0
This commit is contained in:
parent
f56ac1d45e
commit
8d9df72114
286 changed files with 22730 additions and 80 deletions
26
packages/wekan-bootstrap-datepicker/bootstrap-datepicker/tests/suites/methods_jquery.js
vendored
Normal file
26
packages/wekan-bootstrap-datepicker/bootstrap-datepicker/tests/suites/methods_jquery.js
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
module('Methods (jQuery)', {
|
||||
setup: function(){
|
||||
this.$inputs = $('<input><input>')
|
||||
.datepicker()
|
||||
.appendTo('#qunit-fixture');
|
||||
},
|
||||
teardown: function(){
|
||||
this.$inputs.each(function(){
|
||||
$.data(this, 'datepicker').picker.remove();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
test('Methods', function(){
|
||||
[
|
||||
'show',
|
||||
'hide',
|
||||
'setValue',
|
||||
'place'
|
||||
].forEach($.proxy(function(index, value){
|
||||
var returnedObject = this.$inputs.datepicker(value);
|
||||
|
||||
strictEqual(returnedObject, this.$inputs, "is jQuery element");
|
||||
strictEqual(returnedObject.length, 2, "correct length of jQuery elements");
|
||||
}, this));
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue