Bug 510829

Summary: ContextMenu: keyUp/Down doesn't rise focused and selected states for menu items
Product: [Mono] UI Automation Reporter: Feng Xia Mu <fxmu>
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: i686   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: at-spi sample

Description Feng Xia Mu 2009-06-08 08:01:12 UTC
PROBLEM STATEMENT

when pree "down" to a menu item, the menu item should be selected and focused

REPRO:

1.  Run uia2atk/test/samples/contextmenu_menuitem.py 
2.  Run the attached script(make sure the focus is on the ContextMenu app)
3.  look at the output on console

RESULTS:

Action: Press <Down>.

Item 1 States: [STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 2 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 3 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Action: Press <Down>.

Item 1 States: [STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 2 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 3 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Action: Press <Down>.

Item 1 States: [STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 2 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Item 3 States: [STATE_CHECKED, STATE_ENABLED, STATE_FOCUSABLE, STATE_SELECTABLE, STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]

EXPECTED RESULTS:
Action: Press <Down>.

Item 1 States: [STATE_ENABLED,STATE_FOCUSABLE,STATE_FOCUSED,STATE_SELECTABLE, STATE_SELECTED,STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]

.......
Action: Press <Down>.

.......
Item 2 States: [STATE_ENABLED,STATE_FOCUSABLE,STATE_FOCUSED,STATE_SELECTABLE, STATE_SELECTED,STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]

.......

Action: Press <Down>.

.......
Item 3 States: [STATE_ENABLED,STATE_FOCUSABLE,STATE_FOCUSED,STATE_SELECTABLE, STATE_SELECTED,STATE_SENSITIVE, STATE_SHOWING, STATE_VISIBLE]
Comment 1 Feng Xia Mu 2009-06-08 08:03:40 UTC
Created attachment 296681 [details]
at-spi sample
Comment 2 Feng Xia Mu 2009-06-08 08:05:30 UTC
the bug is similar to bug 471405, but that bug has been closed.
Comment 3 Sanford Armstrong 2009-06-09 00:48:16 UTC
Since ContextMenu is obsolete API, this may be difficult or impossible to fix.  Will require investigation, though.  Just commenting because priority is High.
Comment 4 Brad Taylor 2009-07-14 16:08:38 UTC
Move all P1 and P2 bugs into Release 1.1 milestone.
Comment 5 Brad Taylor 2009-07-14 19:43:27 UTC
Let's spend no more than 8 hours on this.  If we can fix it in that period of time, go for it, otherwise, since this is obsolete API anyway, please remove the Release 1.1 milestone.