|
Lines 953-959
Link Here
|
| 953 |
InterfaceImage (type, atkWithImage, atkComponent, atkWithoutImage); |
953 |
InterfaceImage (type, atkWithImage, atkComponent, atkWithoutImage); |
| 954 |
} |
954 |
} |
| 955 |
|
955 |
|
| 956 |
//[Test] |
956 |
[Test] |
| 957 |
public void ListView () |
957 |
public void ListView () |
| 958 |
{ |
958 |
{ |
| 959 |
BasicWidgetType type = BasicWidgetType.ListView; |
959 |
BasicWidgetType type = BasicWidgetType.ListView; |
|
Lines 984-990
Link Here
|
| 984 |
States (accessible, |
984 |
States (accessible, |
| 985 |
Atk.StateType.Enabled, |
985 |
Atk.StateType.Enabled, |
| 986 |
Atk.StateType.Focusable, |
986 |
Atk.StateType.Focusable, |
| 987 |
Atk.StateType.Focused, // from InterfaceSelection |
|
|
| 988 |
Atk.StateType.ManagesDescendants, |
987 |
Atk.StateType.ManagesDescendants, |
| 989 |
Atk.StateType.Sensitive, |
988 |
Atk.StateType.Sensitive, |
| 990 |
Atk.StateType.Showing, |
989 |
Atk.StateType.Showing, |
|
Lines 997-1006
Link Here
|
| 997 |
Atk.Object header = FindObjectByRole (accessible, Atk.Role.TableColumnHeader); |
996 |
Atk.Object header = FindObjectByRole (accessible, Atk.Role.TableColumnHeader); |
| 998 |
Assert.IsNotNull (header, "Header not null"); |
997 |
Assert.IsNotNull (header, "Header not null"); |
| 999 |
States (header, |
998 |
States (header, |
|
|
999 |
Atk.StateType.Selectable, |
| 1000 |
Atk.StateType.Enabled, |
1000 |
Atk.StateType.Enabled, |
| 1001 |
Atk.StateType.Sensitive, |
1001 |
Atk.StateType.Sensitive, |
| 1002 |
Atk.StateType.Showing, |
1002 |
Atk.StateType.Showing, |
| 1003 |
Atk.StateType.Visible); |
1003 |
Atk.StateType.Visible); |
|
|
1004 |
Atk.Action action = CastToAtkInterface<Atk.Action> (header); |
| 1005 |
InterfaceAction (BasicWidgetType.HeaderItem, action, header); |
| 1004 |
|
1006 |
|
| 1005 |
Atk.Object child1 = FindObjectByName (accessible, "Programming Windows with C#"); |
1007 |
Atk.Object child1 = FindObjectByName (accessible, "Programming Windows with C#"); |
| 1006 |
int child1Index = child1.IndexInParent; |
1008 |
int child1Index = child1.IndexInParent; |
|
Lines 1015-1028
Link Here
|
| 1015 |
|
1017 |
|
| 1016 |
InterfaceText (group, "C#"); |
1018 |
InterfaceText (group, "C#"); |
| 1017 |
|
1019 |
|
| 1018 |
// For some reason, the next line would cause crashes |
1020 |
Relation (Atk.RelationType.NodeChildOf, child1, group); |
| 1019 |
// in later tests. |
|
|
| 1020 |
//Relation (Atk.RelationType.NodeChildOf, child1, group); |
| 1021 |
|
1021 |
|
| 1022 |
Assert.AreEqual (3, atkTable.NColumns, "Table NumColumns"); |
1022 |
Assert.AreEqual (3, atkTable.NColumns, "Table NumColumns"); |
| 1023 |
Assert.AreEqual (1, atkTable.GetRowAtIndex (groupIndex), "GetRowAtIndex"); |
|
|
| 1024 |
Assert.AreEqual (0, atkTable.GetColumnAtIndex (groupIndex), "GetColumnAtIndex"); |
| 1025 |
Assert.AreEqual (group, atkTable.RefAt (1, 0), "ListView RefAt"); |
| 1026 |
} |
1023 |
} |
| 1027 |
|
1024 |
|
| 1028 |
protected string simpleTable = "<table>"+ |
1025 |
protected string simpleTable = "<table>"+ |