aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bower_components/bootstrap-datepicker/tests/suites/timezone.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bower_components/bootstrap-datepicker/tests/suites/timezone.js')
-rw-r--r--public/bower_components/bootstrap-datepicker/tests/suites/timezone.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/public/bower_components/bootstrap-datepicker/tests/suites/timezone.js b/public/bower_components/bootstrap-datepicker/tests/suites/timezone.js
new file mode 100644
index 0000000..f522c5c
--- /dev/null
+++ b/public/bower_components/bootstrap-datepicker/tests/suites/timezone.js
@@ -0,0 +1,24 @@
+module('Component', {
+ setup: function(){
+ this.component = $('<div class="input-append date" id="datepicker">'+
+ '<input type="text">'+
+ '</div>')
+ .appendTo('#qunit-fixture')
+ .datepicker();
+ this.dp = this.component.data('datepicker');
+ this.picker = this.dp.picker;
+ },
+ teardown: function(){
+ this.picker.remove();
+ }
+});
+
+test('Check title with timezone', function(){
+ var target;
+
+ this.dp.viewDate = UTCDate(2015, 7, 1);
+ this.dp.fill();
+
+ target = this.picker.find('.datepicker-days .datepicker-switch');
+ equal(target.text(), 'August 2015', 'Title is "August 2015"');
+});