From 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Jul 2018 19:06:45 +0200 Subject: Fixed many permissions and began admin interface --- .../tests/suites/methods_jquery.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 public/bower_components/bootstrap-datepicker/tests/suites/methods_jquery.js (limited to 'public/bower_components/bootstrap-datepicker/tests/suites/methods_jquery.js') diff --git a/public/bower_components/bootstrap-datepicker/tests/suites/methods_jquery.js b/public/bower_components/bootstrap-datepicker/tests/suites/methods_jquery.js new file mode 100644 index 0000000..e934d49 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/tests/suites/methods_jquery.js @@ -0,0 +1,26 @@ +module('Methods (jQuery)', { + setup: function(){ + this.$inputs = $('') + .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)); +}); -- cgit v1.2.3