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
#60 - Added tests for synching the altField when the SelectedMonth option is set as well as clearing any validation message. Also added a test for passing null to the SelectedMonth option.
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
+
assert.equal(field.MonthPicker('GetSelectedMonthYear'),null,'GetSelectedMonthYear API call returned null when there was no date selected as expected.');
654
+
655
+
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