Bug 489571

Summary: 'menu item' accessibles mysteriously change to 'table cell' accessibles
Product: [Mono] UI Automation Reporter: Brian Merrell <bgmerrell>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: NEW --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P3 - Medium    
Version: Release 1.0   
Target Milestone: Release 1.1   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Brian Merrell 2009-03-27 00:31:14 UTC
PROBLEM STATEMENT

All of the items of a ComboBox with the Simple DropDownStyle change Atk roles from 'menu item' to 'table cell' when the item values are changed at runtime.  

REPRO

1.  Run uia2atk/test/samples/combobox_stylechanges.py
2.  Click on the "Simple" button in the combobox_stylechanges.py application
3.  Run Accerciser, browse to the accessible with the 'menu' role, and expand it.  All of the menu's children will have the 'menu item' role.
4.  In the combobox_stylechanges.py sample, click on the "Toggle x10" button, this simply repopulates the combobox with 0-9 x10 (i.e., 0, 10, 20...) instead of 0-9.
5.  Expand the 'menu' accessible again.  (Accerciser should have contracted the 'menu' item accessible after completing step 4.)

RESULTS

The children of the menu accessible that used to have the 'menu item' role will now have the 'table cell' role

EXPECTED RESULTS

The combo box items should not change Atk roles

COMMENTS

You can continue pressing the "Toggle x10" button to change the ComboBox items back and forth, but the Atk roles won't change back to 'menu item'.  However, if you click the "DropDownList" or "DropDown" buttons (to change the ComboBox style to one of those styles) and then press the "Toggle x10" button, the roles will return to 'menu item'.

I haven't been able to reproduce this issue with the DropDown or DropDownList ComboBox styles.