Bug 465597

Summary: ToolStripSplitButton: "selected" and "focused" states of menuitem will be preserved even if another menuitem is seleced and focused
Product: [Mono] UI Automation Reporter: Ray Wang <rawang>
Component: Winforms - ATKAssignee: Brad Taylor <btaylor1>
Status: VERIFIED FIXED QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P5 - None    
Version: Unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ray Wang 2009-01-13 03:58:09 UTC
PROBLEM STATEMENT:
when i perform 'click' action on the toolstripmenuitem(which is in toolstripsplitbutton.py located in samples directory) first time, the accessible get extra "selected" and "focused" states, but when i perform 'click' action on another toolstripmenuitem, the previous one still has "selected" and "focused" states, Is that intentional?

REPRODUCE:
1. launch uia2atk/test/samples/toolstripsplitbutton.py and accerciser
2. open "Interface viewer" tag
3. expand "Accessible" and "Action" 
4. expand "ipy" from left side, "ipy" -> "ToolStripSplitButton Control" -> "ToolStrip" -> (empty) filter -> (empty) toggle_button -> "10"
5. click "click" action and click "Perform action" from "Action", you will see the extra states, "selected" and "focused" appeared in "states".
6. locate at another menuitem(e.g. 12) and perform the same process as "10". you will see "selected" and "focused" states appeared in "states".

RESULTS:
both of "10" and "12" have "selected" and "focused" states

EXPECTED RESULTS:
only one menuitem could maintain "selected" and "focused" states
Comment 2 Brad Taylor 2009-01-29 14:42:29 UTC
Fixed in r124924.
Comment 3 Ray Wang 2009-02-02 05:46:51 UTC
Verified in trunk r125179
     
gtk-sharp2-125244-9.i586.rpm     
libgdiplus0-122354-33.i586.rpm   
mono-core-2.4-68.i586.rpm         
mono-winforms-2.4-68.i586.rpm
mono-uia-124749-248.i586.rpm
mono-winfxcore-124749-248.i586.rpm
uiaatkbridge-125179-492.i586.rpm
uiautomationwinforms-125180-520.i586.rpm