tests for datetimefield

This commit is contained in:
vitalets
2013-04-02 13:36:18 +04:00
parent b0684d0174
commit 2778630c7b
5 changed files with 17 additions and 7 deletions

@ -38,6 +38,7 @@ require(["loader", jqurl], function(loader) {
case 'bootstrap':
custom = ['test/unit/datefield',
'test/unit/date',
'test/unit/datetimefield',
'test/unit/datetime',
'test/unit/wysihtml5',
'test/unit/typeahead'

@ -50,8 +50,8 @@ $(function () {
equal(p.find('input').val(), d, 'date set correct');
//open picker
p.find('span').click();
var picker = p.find('span').parent().data().datepicker.picker;
p.find('span.add-on').click();
var picker = p.find('span.add-on').parent().data().datepicker.picker;
ok(picker.is(':visible'), 'picker shown');
ok(picker.find('td.day.active').is(':visible'), 'active day is visible');