You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.equal(field.val(),'06/2016','The main field was populated correctly using the SelectedMonth option.');
646
+
assert.equal($(SecondaryAltField).val(),'06/2016',"The secondary field was populated correctly using the SelectedMonth option.");
647
+
648
+
field.MonthPicker('option','SelectedMonth',null);
649
+
650
+
assert.equal(field.val(),'','The main field was cleared by passing null to the SelectedMonth option.');
651
+
assert.equal($(SecondaryAltField).val(),'',"The secondary field was cleared by passing null to the SelectedMonth option..");
652
+
653
+
varselectedVal=field.MonthPicker('Validate');
654
+
655
+
assert.equal($('#MonthPicker_Validation_MainAltField').css('display'),'inline','A Validate API call showed a validation message about a bad date on #MainAltField.');
656
+
657
+
assert.equal(selectedVal,null,'Validate API call returned null when there was no date selected as expected.');
658
+
659
+
assert.equal(field.MonthPicker('GetSelectedMonthYear'),null,'GetSelectedMonthYear API call returned null when there was no date selected as expected.');
660
+
661
+
assert.equal($('#MonthPicker_Validation_MainAltField').css('display'),'inline','#MainAltField showed a validation message about a bad date.');
assert.ok($('#MonthPicker_Validation_MainAltField').is(':hidden'),'#MainAltField cleared the validation error message by setting the SelectedMonth option.');
0 commit comments