Bug 478541

Summary: ColorDialog:do click action against SmallColorControls are multi selected colors
Product: [Mono] UI Automation Reporter: calen chen <cachen>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: REOPENED --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P2 - High    
Version: Release 1.0   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 478615    
Bug Blocks:    
Attachments: patch

Description calen chen 2009-02-23 05:46:56 UTC
PROBLEM STATEMENT:

Red color is default selected, Do click action for one SmallColorControl(Blue color as instance) from accerciser that "Red" and "Blue" are multi selected, then do click action for OK button may cause application no response. mouse click OK button may remain 'Red' as selected.

REPRO:

1. run uia2atk/test/samples/colordialog.py 
2. in accerciser, expand 'panel' in the tree view on the left to show many SmallColorControl with 'push button' roll name, select one 'push button'(Blue color as instance), under 'interface viewer' tab, expand AtkAction, do 'click' action
3. select "OK" push button in the tree view on the left, do click action under 'interface viewer' tab , or mouse click OK button to close color dialog

RESULTS: 

in step 2: Red and Blue are both multi selected

in step 3: do click action from accerciser cause application death

EXPECTED RESUlT:

SmallColorControl shouldn't be multi selected.
Comment 1 Neville Gao 2009-02-23 10:32:10 UTC
Created attachment 274615 [details]
patch
Comment 2 Andres Aragoneses 2009-02-25 02:40:02 UTC
Please commit, thanks.
Comment 3 Neville Gao 2009-02-25 08:32:33 UTC
Committed in UIAutomationWinforms r127937. Waiting for SWF patch review.
Comment 4 Andres Aragoneses 2009-02-26 02:47:06 UTC
Neville: sorry, I didn't know this patch depended on a SWF patch not applied yet, so the build was broken when you committed. Furthermore, it's not likely your patch gets backported, so you have to use reflection.
Comment 5 Neville Gao 2009-02-26 02:58:23 UTC
Sorry, Committed in r128049.
SWF patch committed, so marked this as FIXED.
Comment 6 Feng Xia Mu 2009-06-15 06:15:01 UTC
reopen this bug: SmallColorControl still can be multi selected.

REPRO:

1. run uia2atk/test/samples/colordialog.py , click "ColorDialog Button".
2. in accerciser, expand 'panel' with 66 Children in the tree view on the left 
3. select any 'push button', under 'interface viewer' tab, expand AtkAction, do 'click' action.
4. select another 'push button', under 'interface viewer' tab, expand AtkAction, do 'click' action.
3. select "OK" push button in the tree view on the left, do click action under
'interface viewer' tab , or mouse click OK button to close color dialog

RESULTS: 

step 4: there are 3 SmallColorControls selected, but if just use mouse to select the SmallColorControl, at one time there is only one SmallColorControl selected.

step 5: the app won't crash

test on:
mono-core-135601-1177.src.rpm
mono-uia-132785-276.src.rpm
uiaatkbridge-134036-662.src.rpm
uiautomationwinforms-135899-669.src.rpm
Revision: 136086