mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added tests for combo box controls.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user