Skip to content

Commit

Permalink
Merge pull request #1886 from vsn4ik/test_for_pr_1859
Browse files Browse the repository at this point in the history
Add tests for PR 1859
  • Loading branch information
acrobat committed May 10, 2016
2 parents 480905b + 10f8512 commit e23e2b4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/suites/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,26 @@ test('templates', function(){
equal(picker.find('.datepicker-days .next').prop('innerHTML'), $('<div>').html('&raquo;').text());
});

test('Nav arrow html templates with span tag', function () {
var input = $('<input />')
.appendTo('#qunit-fixture')
.val('2012-10-26')
.datepicker({
format: 'yyyy-mm-dd',
templates: {
leftArrow: '<span></span>',
rightArrow: '<span></span>'
}
}),
dp = input.data('datepicker'),
picker = dp.picker,
target;

input.focus();
target = picker.find('.datepicker-months tbody span:nth(9)');
ok(target.hasClass('active'), 'Month is selected');
});

test('date cells', function(){
var input = $('<input />')
.appendTo('#qunit-fixture')
Expand Down

0 comments on commit e23e2b4

Please sign in to comment.