|
Lines 45-50
Link Here
|
| 45 |
Atk.Object accessible = InterfaceText (type, |
45 |
Atk.Object accessible = InterfaceText (type, |
| 46 |
(type == BasicWidgetType.ToolStripLabel)); |
46 |
(type == BasicWidgetType.ToolStripLabel)); |
| 47 |
Label (accessible, type); |
47 |
Label (accessible, type); |
|
|
48 |
|
| 49 |
TestNewAccessibleName (accessible); |
| 48 |
} |
50 |
} |
| 49 |
|
51 |
|
| 50 |
protected void Label (Atk.Object accessible, BasicWidgetType type) |
52 |
protected void Label (Atk.Object accessible, BasicWidgetType type) |
|
Lines 63-68
Link Here
|
| 63 |
|
65 |
|
| 64 |
//TODO: check parent (it seems it only works for real objects) |
66 |
//TODO: check parent (it seems it only works for real objects) |
| 65 |
//Assert.IsNotNull (accessible.Parent, "Label parent"); |
67 |
//Assert.IsNotNull (accessible.Parent, "Label parent"); |
|
|
68 |
|
| 69 |
TestNewAccessibleName (accessible); |
| 66 |
} |
70 |
} |
| 67 |
|
71 |
|
| 68 |
[Test] |
72 |
[Test] |
|
Lines 117-122
Link Here
|
| 117 |
string keyBinding = atkAction.GetKeybinding (0); |
121 |
string keyBinding = atkAction.GetKeybinding (0); |
| 118 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
122 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
| 119 |
Assert.AreEqual (keyBinding, "<Alt>e", "<Alt>e"); |
123 |
Assert.AreEqual (keyBinding, "<Alt>e", "<Alt>e"); |
|
|
124 |
|
| 125 |
TestNewAccessibleName (accessible); |
| 120 |
} |
126 |
} |
| 121 |
|
127 |
|
| 122 |
[Test] |
128 |
[Test] |
|
Lines 165-170
Link Here
|
| 165 |
string keyBinding = atkAction.GetKeybinding (0); |
171 |
string keyBinding = atkAction.GetKeybinding (0); |
| 166 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
172 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
| 167 |
Assert.AreEqual (keyBinding, "<Alt>s", "<Alt>s"); |
173 |
Assert.AreEqual (keyBinding, "<Alt>s", "<Alt>s"); |
|
|
174 |
|
| 175 |
TestNewAccessibleName (accessible); |
| 168 |
} |
176 |
} |
| 169 |
|
177 |
|
| 170 |
[Test] |
178 |
[Test] |
|
Lines 225-230
Link Here
|
| 225 |
string keyBinding = atkAction.GetKeybinding (0); |
233 |
string keyBinding = atkAction.GetKeybinding (0); |
| 226 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
234 |
Assert.IsNotNull (keyBinding, "GetKeybinding (0))"); |
| 227 |
Assert.AreEqual (keyBinding, "<Alt>t", "<Alt>t"); |
235 |
Assert.AreEqual (keyBinding, "<Alt>t", "<Alt>t"); |
|
|
236 |
|
| 237 |
TestNewAccessibleName (accessible); |
| 228 |
} |
238 |
} |
| 229 |
|
239 |
|
| 230 |
[Test] |
240 |
[Test] |
|
Lines 245-266
Link Here
|
| 245 |
InterfaceComponent (type, atkComponent); |
255 |
InterfaceComponent (type, atkComponent); |
| 246 |
|
256 |
|
| 247 |
Parent (type, accessible); |
257 |
Parent (type, accessible); |
|
|
258 |
|
| 259 |
TestNewAccessibleName (accessible); |
| 248 |
} |
260 |
} |
| 249 |
|
261 |
|
| 250 |
[Test] |
262 |
[Test] |
| 251 |
public void HScrollBar () |
263 |
public void HScrollBar () |
| 252 |
{ |
264 |
{ |
| 253 |
BasicWidgetType type = BasicWidgetType.HScrollBar; |
265 |
BasicWidgetType type = BasicWidgetType.HScrollBar; |
| 254 |
Atk.Object accessible; |
266 |
Atk.Object accessible = null, orig; |
| 255 |
string name = "test"; |
267 |
string [] names = new string [] { "First item", "Second Item", "Last Item", |
|
|
268 |
"A really, really long item that's here to try to ensure that we have a scrollbar, assuming that it's even possible to have a scrollbar just by having a relaly, really long item and we don't also have to perform some other function which I'm not aware of, like display the form on the screen" }; |
| 269 |
|
| 270 |
orig = GetAccessible (type, names, true); |
| 256 |
|
271 |
|
| 257 |
accessible = GetAccessible (type, name, true); |
272 |
for (int i = orig.NAccessibleChildren - 1; i >= 0; i--) |
|
|
273 |
{ |
| 274 |
Atk.Object child = orig.RefAccessibleChild (i); |
| 275 |
if (child.Role == Atk.Role.ScrollBar && child.RefStateSet().ContainsState(Atk.StateType.Horizontal)) |
| 276 |
{ |
| 277 |
accessible = child; |
| 278 |
break; |
| 279 |
} |
| 280 |
} |
| 281 |
PropertyRole (type, accessible); |
| 282 |
|
| 258 |
Atk.Value atkValue = CastToAtkInterface <Atk.Value> (accessible); |
283 |
Atk.Value atkValue = CastToAtkInterface <Atk.Value> (accessible); |
| 259 |
|
284 |
|
| 260 |
InterfaceValue (type, atkValue); |
285 |
InterfaceValue (type, atkValue); |
| 261 |
|
286 |
|
| 262 |
PropertyRole (type, accessible); |
|
|
| 263 |
|
| 264 |
States (accessible, |
287 |
States (accessible, |
| 265 |
Atk.StateType.Horizontal, |
288 |
Atk.StateType.Horizontal, |
| 266 |
Atk.StateType.Enabled, |
289 |
Atk.StateType.Enabled, |
|
Lines 308-330
Link Here
|
| 308 |
Assert.AreEqual (minimumValue, |
331 |
Assert.AreEqual (minimumValue, |
| 309 |
(double) glibValue.Val, "Set/Get values failed. (Maximum + 1)"); |
332 |
(double) glibValue.Val, "Set/Get values failed. (Maximum + 1)"); |
| 310 |
} |
333 |
} |
|
|
334 |
|
| 335 |
TestNewAccessibleName (orig); |
| 311 |
} |
336 |
} |
| 312 |
|
337 |
|
| 313 |
[Test] |
338 |
[Test] |
| 314 |
public void VScrollBar () |
339 |
public void VScrollBar () |
| 315 |
{ |
340 |
{ |
| 316 |
BasicWidgetType type = BasicWidgetType.VScrollBar; |
341 |
BasicWidgetType type = BasicWidgetType.VScrollBar; |
| 317 |
Atk.Object accessible; |
342 |
Atk.Object accessible = null, orig; |
| 318 |
string name = "test"; |
343 |
string [] names = new string [100]; |
|
|
344 |
for (int i = 0; i < 100; i++) |
| 345 |
names [i] = i.ToString (); |
| 319 |
|
346 |
|
| 320 |
accessible = GetAccessible (type, name, true); |
347 |
orig = GetAccessible (type, names, true); |
| 321 |
|
348 |
|
|
|
349 |
for (int i = orig.NAccessibleChildren - 1; i >= 0; i--) |
| 350 |
{ |
| 351 |
Atk.Object child = orig.RefAccessibleChild (i); |
| 352 |
if (child.Role == Atk.Role.ScrollBar && child.RefStateSet ().ContainsState (Atk.StateType.Vertical)) |
| 353 |
{ |
| 354 |
accessible = child; |
| 355 |
break; |
| 356 |
} |
| 357 |
} |
| 358 |
|
| 359 |
PropertyRole (type, accessible); |
| 360 |
|
| 322 |
Atk.Value atkValue = CastToAtkInterface <Atk.Value> (accessible); |
361 |
Atk.Value atkValue = CastToAtkInterface <Atk.Value> (accessible); |
| 323 |
|
362 |
|
| 324 |
InterfaceValue (type, atkValue); |
363 |
InterfaceValue (type, atkValue); |
| 325 |
|
364 |
|
| 326 |
PropertyRole (type, accessible); |
|
|
| 327 |
|
| 328 |
States (accessible, |
365 |
States (accessible, |
| 329 |
Atk.StateType.Vertical, |
366 |
Atk.StateType.Vertical, |
| 330 |
Atk.StateType.Enabled, |
367 |
Atk.StateType.Enabled, |
|
Lines 335-341
Link Here
|
| 335 |
Assert.AreEqual (ValidNChildrenForAScrollBar, accessible.NAccessibleChildren, "VScrollBar numChildren"); |
372 |
Assert.AreEqual (ValidNChildrenForAScrollBar, accessible.NAccessibleChildren, "VScrollBar numChildren"); |
| 336 |
|
373 |
|
| 337 |
Atk.Component atkComponent = CastToAtkInterface <Atk.Component> (accessible); |
374 |
Atk.Component atkComponent = CastToAtkInterface <Atk.Component> (accessible); |
| 338 |
|
|
|
| 339 |
InterfaceComponent (type, atkComponent); |
375 |
InterfaceComponent (type, atkComponent); |
| 340 |
|
376 |
|
| 341 |
//Simple Set/Get |
377 |
//Simple Set/Get |
|
Lines 371-376
Link Here
|
| 371 |
Assert.AreEqual (minimumValue, |
407 |
Assert.AreEqual (minimumValue, |
| 372 |
(double) glibValue.Val, "Set/Get values failed. (Maximum + 1)"); |
408 |
(double) glibValue.Val, "Set/Get values failed. (Maximum + 1)"); |
| 373 |
} |
409 |
} |
|
|
410 |
|
| 411 |
TestNewAccessibleName (orig); |
| 374 |
} |
412 |
} |
| 375 |
|
413 |
|
| 376 |
[Test] |
414 |
[Test] |
|
Lines 402-407
Link Here
|
| 402 |
InterfaceComponent (type, atkComponent); |
440 |
InterfaceComponent (type, atkComponent); |
| 403 |
|
441 |
|
| 404 |
Parent (type, accessible); |
442 |
Parent (type, accessible); |
|
|
443 |
Console.WriteLine ("going to test NewAccessibleName"); |
| 444 |
TestNewAccessibleName (accessible); |
| 405 |
} |
445 |
} |
| 406 |
|
446 |
|
| 407 |
[Test] |
447 |
[Test] |
|
Lines 438-443
Link Here
|
| 438 |
SetReadOnly (type, accessible, false); |
478 |
SetReadOnly (type, accessible, false); |
| 439 |
ExpectEvents (1, Atk.Role.SpinButton, "object:state-changed:editable"); |
479 |
ExpectEvents (1, Atk.Role.SpinButton, "object:state-changed:editable"); |
| 440 |
Assert.IsTrue (accessible.RefStateSet().ContainsState (Atk.StateType.Editable), "Non-ReadOnly spinner should be editable"); |
480 |
Assert.IsTrue (accessible.RefStateSet().ContainsState (Atk.StateType.Editable), "Non-ReadOnly spinner should be editable"); |
|
|
481 |
|
| 482 |
TestNewAccessibleName (accessible); |
| 441 |
} |
483 |
} |
| 442 |
|
484 |
|
| 443 |
[Test] |
485 |
[Test] |
|
Lines 475-480
Link Here
|
| 475 |
// PropertyRole (type, accessible); |
517 |
// PropertyRole (type, accessible); |
| 476 |
// |
518 |
// |
| 477 |
// Assert.AreEqual (0, accessible.NAccessibleChildren, "TextBoxEntry numChildren"); |
519 |
// Assert.AreEqual (0, accessible.NAccessibleChildren, "TextBoxEntry numChildren"); |
|
|
520 |
|
| 521 |
TestNewAccessibleName (accessible); |
| 478 |
} |
522 |
} |
| 479 |
|
523 |
|
| 480 |
[Test] |
524 |
[Test] |
|
Lines 514-519
Link Here
|
| 514 |
int nAccessibleChildren = (TextBoxHasScrollBar? 1: 0); |
558 |
int nAccessibleChildren = (TextBoxHasScrollBar? 1: 0); |
| 515 |
Assert.AreEqual (nAccessibleChildren, accessible.NAccessibleChildren, "TextBoxView NAccessibleChildren"); |
559 |
Assert.AreEqual (nAccessibleChildren, accessible.NAccessibleChildren, "TextBoxView NAccessibleChildren"); |
| 516 |
} |
560 |
} |
|
|
561 |
|
| 562 |
TestNewAccessibleName (accessible); |
| 517 |
} |
563 |
} |
| 518 |
|
564 |
|
| 519 |
[Test] |
565 |
[Test] |
|
Lines 535-540
Link Here
|
| 535 |
Atk.StateType.Showing, |
581 |
Atk.StateType.Showing, |
| 536 |
Atk.StateType.Visible, |
582 |
Atk.StateType.Visible, |
| 537 |
Atk.StateType.SingleLine); |
583 |
Atk.StateType.SingleLine); |
|
|
584 |
|
| 585 |
TestNewAccessibleName (accessible); |
| 538 |
} |
586 |
} |
| 539 |
|
587 |
|
| 540 |
[Test] |
588 |
[Test] |
|
Lines 582-587
Link Here
|
| 582 |
names.Add (submenu.Label); |
630 |
names.Add (submenu.Label); |
| 583 |
Atk.Selection atkSelection = CastToAtkInterface <Atk.Selection> (accessible); |
631 |
Atk.Selection atkSelection = CastToAtkInterface <Atk.Selection> (accessible); |
| 584 |
InterfaceSelection (atkSelection, names.ToArray (), accessible, type); |
632 |
InterfaceSelection (atkSelection, names.ToArray (), accessible, type); |
|
|
633 |
|
| 634 |
TestNewAccessibleName (accessible); |
| 585 |
} |
635 |
} |
| 586 |
|
636 |
|
| 587 |
[Test] |
637 |
[Test] |
|
Lines 658-663
Link Here
|
| 658 |
currentTopLevelItems = -1; |
708 |
currentTopLevelItems = -1; |
| 659 |
throw; |
709 |
throw; |
| 660 |
} finally { |
710 |
} finally { |
|
|
711 |
//if we tested this after we close the contextmenu, it would obviously fail |
| 712 |
TestNewAccessibleName (accessible); |
| 713 |
|
| 661 |
if (currentTopLevelItems != -1) |
714 |
if (currentTopLevelItems != -1) |
| 662 |
currentTopLevelItems = GetTopLevelRootItem ().NAccessibleChildren; |
715 |
currentTopLevelItems = GetTopLevelRootItem ().NAccessibleChildren; |
| 663 |
CloseContextMenu (accessible); |
716 |
CloseContextMenu (accessible); |
|
Lines 706-711
Link Here
|
| 706 |
InterfaceAction (type, atkAction, accessible); |
759 |
InterfaceAction (type, atkAction, accessible); |
| 707 |
|
760 |
|
| 708 |
InterfaceText (type, true, accessible); |
761 |
InterfaceText (type, true, accessible); |
|
|
762 |
|
| 763 |
TestNewAccessibleName (accessible); |
| 709 |
} |
764 |
} |
| 710 |
|
765 |
|
| 711 |
|
766 |
|
|
Lines 770-775
Link Here
|
| 770 |
menu = new List <MenuLayout> (new MenuLayout [] { new MenuLayout (simpleTestText, firstSubmenus), new MenuLayout ("Help") }); |
825 |
menu = new List <MenuLayout> (new MenuLayout [] { new MenuLayout (simpleTestText, firstSubmenus), new MenuLayout ("Help") }); |
| 771 |
accessible = GetAccessible (type, menu); |
826 |
accessible = GetAccessible (type, menu); |
| 772 |
InterfaceText (type, true, accessible); |
827 |
InterfaceText (type, true, accessible); |
|
|
828 |
|
| 829 |
TestNewAccessibleName (accessible); |
| 773 |
} |
830 |
} |
| 774 |
|
831 |
|
| 775 |
[Test] |
832 |
[Test] |
|
Lines 878-883
Link Here
|
| 878 |
//check the Action impl of a comboboxitem (menuitem role) |
935 |
//check the Action impl of a comboboxitem (menuitem role) |
| 879 |
atkAction = CastToAtkInterface <Atk.Action> (secondComboBoxItem); |
936 |
atkAction = CastToAtkInterface <Atk.Action> (secondComboBoxItem); |
| 880 |
InterfaceAction (BasicWidgetType.ComboBoxItem, atkAction, secondComboBoxItem); |
937 |
InterfaceAction (BasicWidgetType.ComboBoxItem, atkAction, secondComboBoxItem); |
|
|
938 |
|
| 939 |
TestNewAccessibleName (accessible); |
| 881 |
} |
940 |
} |
| 882 |
|
941 |
|
| 883 |
//it's safer to put this test the last, apparently Atk makes it unresponsive after dealing with |
942 |
//it's safer to put this test the last, apparently Atk makes it unresponsive after dealing with |
|
Lines 925-932
Link Here
|
| 925 |
//check the Action impl of a comboboxitem (menuitem role) |
984 |
//check the Action impl of a comboboxitem (menuitem role) |
| 926 |
atkAction = CastToAtkInterface <Atk.Action> (secondComboBoxItem); |
985 |
atkAction = CastToAtkInterface <Atk.Action> (secondComboBoxItem); |
| 927 |
InterfaceAction (BasicWidgetType.ComboBoxItem, atkAction, secondComboBoxItem); |
986 |
InterfaceAction (BasicWidgetType.ComboBoxItem, atkAction, secondComboBoxItem); |
| 928 |
|
987 |
|
| 929 |
|
|
|
| 930 |
if (widget != null) |
988 |
if (widget != null) |
| 931 |
return; |
989 |
return; |
| 932 |
//bug 503281 |
990 |
//bug 503281 |
|
Lines 934-939
Link Here
|
| 934 |
names = new string [] { "Test1", "Test2" }; |
992 |
names = new string [] { "Test1", "Test2" }; |
| 935 |
accessible = GetAccessible (type, names, selected, widget); |
993 |
accessible = GetAccessible (type, names, selected, widget); |
| 936 |
Assert.AreEqual (names [selected], accessible.Name, "expected " + names [selected] + ", we got " + accessible.Name); |
994 |
Assert.AreEqual (names [selected], accessible.Name, "expected " + names [selected] + ", we got " + accessible.Name); |
|
|
995 |
|
| 996 |
TestNewAccessibleName (accessible); |
| 937 |
} |
997 |
} |
| 938 |
|
998 |
|
| 939 |
[Test] |
999 |
[Test] |
|
Lines 1004-1009
Link Here
|
| 1004 |
atkSelection.AddSelection (0); |
1064 |
atkSelection.AddSelection (0); |
| 1005 |
}); |
1065 |
}); |
| 1006 |
} |
1066 |
} |
|
|
1067 |
|
| 1068 |
TestNewAccessibleName (accessible); |
| 1007 |
} |
1069 |
} |
| 1008 |
|
1070 |
|
| 1009 |
[Test] |
1071 |
[Test] |
|
Lines 1029-1034
Link Here
|
| 1029 |
Assert.AreEqual (0, accessible.NAccessibleChildren, "Button numChildren"); |
1091 |
Assert.AreEqual (0, accessible.NAccessibleChildren, "Button numChildren"); |
| 1030 |
|
1092 |
|
| 1031 |
Parent (type, accessible); |
1093 |
Parent (type, accessible); |
|
|
1094 |
|
| 1095 |
TestNewAccessibleName (accessible); |
| 1032 |
|
1096 |
|
| 1033 |
Atk.Image atkWithoutImage, atkWithImage; |
1097 |
Atk.Image atkWithoutImage, atkWithImage; |
| 1034 |
atkWithImage = CastToAtkInterface <Atk.Image> (accessible); |
1098 |
atkWithImage = CastToAtkInterface <Atk.Image> (accessible); |
|
Lines 1106-1111
Link Here
|
| 1106 |
Relation (Atk.RelationType.NodeChildOf, child1, group); |
1170 |
Relation (Atk.RelationType.NodeChildOf, child1, group); |
| 1107 |
|
1171 |
|
| 1108 |
Assert.AreEqual (3, atkTable.NColumns, "Table NumColumns"); |
1172 |
Assert.AreEqual (3, atkTable.NColumns, "Table NumColumns"); |
|
|
1173 |
|
| 1174 |
TestNewAccessibleName (accessible); |
| 1109 |
} |
1175 |
} |
| 1110 |
|
1176 |
|
| 1111 |
protected string simpleTable = "<table>"+ |
1177 |
protected string simpleTable = "<table>"+ |
|
Lines 1180-1185
Link Here
|
| 1180 |
Atk.Selection atkSelection = CastToAtkInterface <Atk.Selection> (accessible); |
1246 |
Atk.Selection atkSelection = CastToAtkInterface <Atk.Selection> (accessible); |
| 1181 |
InterfaceSelection (atkSelection, names, accessible, BasicWidgetType.ComboBoxDropDownEntry); |
1247 |
InterfaceSelection (atkSelection, names, accessible, BasicWidgetType.ComboBoxDropDownEntry); |
| 1182 |
} |
1248 |
} |
|
|
1249 |
|
| 1250 |
TestNewAccessibleName (accessible); |
| 1183 |
} |
1251 |
} |
| 1184 |
|
1252 |
|
| 1185 |
[Test] |
1253 |
[Test] |
|
Lines 1190-1196
Link Here
|
| 1190 |
|
1258 |
|
| 1191 |
accessible = GetAccessible (type, simpleTable, true); |
1259 |
accessible = GetAccessible (type, simpleTable, true); |
| 1192 |
|
1260 |
|
| 1193 |
Assert.AreEqual (null, accessible.Name, "acc.name==null"); |
1261 |
Assert.AreEqual (String.Empty, accessible.Name ?? String.Empty, "acc.name==null"); |
| 1194 |
|
1262 |
|
| 1195 |
Atk.Component atkComponent = CastToAtkInterface <Atk.Component> (accessible); |
1263 |
Atk.Component atkComponent = CastToAtkInterface <Atk.Component> (accessible); |
| 1196 |
InterfaceComponent (type, atkComponent); |
1264 |
InterfaceComponent (type, atkComponent); |
|
Lines 1270-1275
Link Here
|
| 1270 |
int rowIndex = atkTable.GetRowAtIndex (item4Index); |
1338 |
int rowIndex = atkTable.GetRowAtIndex (item4Index); |
| 1271 |
Assert.IsTrue (rowIndex == -1 || rowIndex >= atkTable.NRows, "Child row after collapse"); |
1339 |
Assert.IsTrue (rowIndex == -1 || rowIndex >= atkTable.NRows, "Child row after collapse"); |
| 1272 |
} |
1340 |
} |
|
|
1341 |
|
| 1342 |
TestNewAccessibleName (accessible); |
| 1273 |
} |
1343 |
} |
| 1274 |
|
1344 |
|
| 1275 |
[Test] |
1345 |
[Test] |
|
Lines 1295-1301
Link Here
|
| 1295 |
Atk.StateType.Sensitive, |
1365 |
Atk.StateType.Sensitive, |
| 1296 |
Atk.StateType.Resizable, |
1366 |
Atk.StateType.Resizable, |
| 1297 |
Atk.StateType.Showing, |
1367 |
Atk.StateType.Showing, |
| 1298 |
Atk.StateType.Visible); |
1368 |
Atk.StateType.Visible); |
|
|
1369 |
|
| 1370 |
TestNewAccessibleName (accessible); |
| 1299 |
} |
1371 |
} |
| 1300 |
|
1372 |
|
| 1301 |
[Test] |
1373 |
[Test] |
|
Lines 1330-1335
Link Here
|
| 1330 |
Atk.StateType.Sensitive, |
1402 |
Atk.StateType.Sensitive, |
| 1331 |
Atk.StateType.Showing, |
1403 |
Atk.StateType.Showing, |
| 1332 |
Atk.StateType.Visible); |
1404 |
Atk.StateType.Visible); |
|
|
1405 |
|
| 1406 |
TestNewAccessibleName (accessible); |
| 1333 |
} |
1407 |
} |
| 1334 |
|
1408 |
|
| 1335 |
[Test] |
1409 |
[Test] |
|
Lines 1362-1367
Link Here
|
| 1362 |
|
1436 |
|
| 1363 |
if (accessible.NAccessibleChildren < 1) |
1437 |
if (accessible.NAccessibleChildren < 1) |
| 1364 |
Assert.Fail ("Accessible should have children!"); |
1438 |
Assert.Fail ("Accessible should have children!"); |
|
|
1439 |
|
| 1440 |
TestNewAccessibleName (accessible); |
| 1365 |
} |
1441 |
} |
| 1366 |
|
1442 |
|
| 1367 |
[Test] |
1443 |
[Test] |
|
Lines 1427-1433
Link Here
|
| 1427 |
CastToAtkInterface <Atk.Action> (accessible.Parent).DoAction (0); |
1503 |
CastToAtkInterface <Atk.Action> (accessible.Parent).DoAction (0); |
| 1428 |
}); |
1504 |
}); |
| 1429 |
|
1505 |
|
| 1430 |
|
1506 |
TestNewAccessibleName (accessible); |
| 1431 |
} |
1507 |
} |
| 1432 |
|
1508 |
|
| 1433 |
[Test] |
1509 |
[Test] |
|
Lines 1439-1444
Link Here
|
| 1439 |
string name = "test"; |
1515 |
string name = "test"; |
| 1440 |
accessible = GetAccessible (type, name, true); |
1516 |
accessible = GetAccessible (type, name, true); |
| 1441 |
HSplitter (accessible); |
1517 |
HSplitter (accessible); |
|
|
1518 |
|
| 1519 |
TestNewAccessibleName (accessible); |
| 1442 |
} |
1520 |
} |
| 1443 |
|
1521 |
|
| 1444 |
[Test] |
1522 |
[Test] |
|
Lines 1470-1475
Link Here
|
| 1470 |
Atk.StateType.Showing, |
1548 |
Atk.StateType.Showing, |
| 1471 |
Atk.StateType.Vertical, |
1549 |
Atk.StateType.Vertical, |
| 1472 |
Atk.StateType.Visible); |
1550 |
Atk.StateType.Visible); |
|
|
1551 |
|
| 1552 |
TestNewAccessibleName (accessible); |
| 1473 |
} |
1553 |
} |
| 1474 |
|
1554 |
|
| 1475 |
[Test] |
1555 |
[Test] |
|
Lines 1540-1545
Link Here
|
| 1540 |
Assert.IsTrue (w2 < w1, "Right control width decreased"); |
1620 |
Assert.IsTrue (w2 < w1, "Right control width decreased"); |
| 1541 |
Assert.AreEqual (h2, h1, "Height should not change"); |
1621 |
Assert.AreEqual (h2, h1, "Height should not change"); |
| 1542 |
}); |
1622 |
}); |
|
|
1623 |
|
| 1624 |
TestNewAccessibleName (accessible); |
| 1543 |
} |
1625 |
} |
| 1544 |
} |
1626 |
} |
| 1545 |
} |
1627 |
} |