Bug 508076

Summary: ToolStripMenuItem: menu item doesn't lose "selected" state when clicked
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 CC: cachen
Version: Release 1.0   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Brian Merrell 2009-05-29 07:29:24 UTC
PROBLEM STATEMENT

A ToolStripMenuItem can be represented as a "menu" or a "menu item" accessible (depending on whether it has children or not).  A ToolStripMenuItem "menu item" accessible should lose the "selected" when it is clicked.  This does not occur, however.  The "selected" state remains for a menu item accessible when it is clicked; this is unwanted behavior.

REPRO

1.  Run Accerciser, open the "Interface Viewer" tab, and expand the "Accessible" expander
2.  Run uia2atk/test/samples/toolstripmenuitem.py
3.  In Accerciser's left pane, browse to and select the "Create" menu item (which is a child of the "View" menu).
4.  In the toolstripmenuitem.py application, left-click on the "View" menu and then move the mouse down to the "Create" menu item without clicking it.  Notice that the "Create" menu item gains the "selected" (and the "focused") state.
5.  Left-click on the "Create" menu item

RESULTS

The "View" menu closes (as expected), but the "selected" state remains for the "View" menu item accessible.  This would be expected for a combo box, but it is not desirable here.

EXPECTED RESULTS

The "selected" state goes away when the menu item is clicked.

COMMENTS

I think we just want to mimic the MenuStrip behavior here, where this problem doesn't exist.