Added tests for combo box controls.

This commit is contained in:
Sheron Benedict
2016-03-02 13:55:40 +05:30
parent 72880057dd
commit c54be260da
@@ -58,4 +58,18 @@ module Tests.Globals {
let editorsInContainerValid: boolean = ASPxClientEdit.ValidateEditorsInContainer(container, "group1", false);
let editorsInGroupValid: boolean =ASPxClientEdit.ValidateGroup("group1", false);
}
}
module Tests.Controls {
declare var comboBox: ASPxClientComboBox;
function ASPxClientComboBoxTest() {
let selectedIndex: number = comboBox.GetSelectedIndex();
comboBox.SetSelectedIndex(1);
let selectedIndexChangedEventHandler: (s: ASPxClientControl, e: ASPxClientEventArgs) => void = (s: ASPxClientControl, e: ASPxClientEventArgs) => { };
comboBox.SelectedIndexChanged.AddHandler(selectedIndexChangedEventHandler);
comboBox.SelectedIndexChanged.RemoveHandler(selectedIndexChangedEventHandler);
comboBox.SelectedIndexChanged.ClearHandlers();
}
}