timezone.js 739 B

123456789101112131415161718192021222324
  1. module('Component', {
  2. setup: function(){
  3. this.component = $('<div class="input-append date" id="datepicker">'+
  4. '<input type="text">'+
  5. '</div>')
  6. .appendTo('#qunit-fixture')
  7. .datepicker();
  8. this.dp = this.component.data('datepicker');
  9. this.picker = this.dp.picker;
  10. },
  11. teardown: function(){
  12. this.picker.remove();
  13. }
  14. });
  15. test('Check title with timezone', function(){
  16. var target;
  17. this.dp.viewDate = UTCDate(2015, 7, 1);
  18. this.dp.fill();
  19. target = this.picker.find('.datepicker-days .datepicker-switch');
  20. equal(target.text(), 'August 2015', 'Title is "August 2015"');
  21. });