Bug 508984

Summary: ToolStripDropDownButton: menuitem still remain 'focused' and 'selected' when clicked
Product: [Mono] UI Automation Reporter: calen chen <cachen>
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: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description calen chen 2009-06-02 06:39:13 UTC
PROBLEM STATEMENT

"menu item" accessible should lose the "focused" and "selected" when it is clicked.  however,  The "selected" state remains for a menu item accessible when doing mouse click; the "focused" and "selected" states remains for a menuitem when doing doAction click. this is unwanted behavior.

REPRO1

1.  Run Accerciser, open the "Interface Viewer" tab, and expand the
"Accessible" expander
2.  Run uia2atk/test/samples/toolstripdropdownbutton.py
3.  In Accerciser's left pane, browse to and select the "Red" menu item
4.  In the toolstripdropdownbutton.py application, left-click on the "ToolStripDropDownButton1" menu and
then move the mouse down to the "Red" menu item without clicking it.  Notice
that the "Red" menu item gains the "selected" (and the "focused") state.
5.  Left-click on the "Red" menu item
6.  see 'Red' menuitem's states

REPRO2

7. In Accerciser's left pane, browse to and select the "Green" menu item
8. perform 'click' action under 'interface viewer'
9. see 'Blue' menuitem's states

RESULTS

in step 6: The menu closes (as expected), but the "selected" state remains for the "Red" menu item

in step9: "focused" and "selected" state remains for the 'Green' menu item, expand the menu, you can see 'Green' menuitem is covered with blue rectangle.

EXPECTED RESULTS

in step6: The "selected" state goes away when the menu item is clicked. (similar to bug508076)

in step9: "focused" and "selected" states go away when the menu item is clicked. 'click' action should be implemented as the same as what mouse button click does: in this sample, click 'ToolStripDropDownButton1' to expand menu in application, then mouse click 'Green' menuitem to select it will collapse the menu, expand the menu again, you can see 'Green' menuitem isn't covered with blue rectangle.

COMMENTS

If you like me seperate them please let me know :)
Comment 1 calen chen 2009-06-04 17:44:48 UTC
Additional:

bug471411 Comment #5 as reference
Comment 2 calen chen 2009-07-16 06:42:06 UTC
I think the problem of "in step9: "focused" and "selected" state remains for the 'Green' menu item, expand the menu, you can see 'Green' menuitem is covered with blue rectangle." is related to bug 522570, please have a look, thanks!