Bug 508076 - ToolStripMenuItem: menu item doesn't lose "selected" state when clicked
Summary: ToolStripMenuItem: menu item doesn't lose "selected" state when clicked
Status: NEW
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: x86 openSUSE 11.1
: P3 - Medium : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 07:29 UTC by Brian Merrell
Modified: 2009-07-02 03:21 UTC (History)
1 user (show)

See Also:
Found By: Integration Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.