Bug 503286

Summary: ToolStripComboBox does not get its name from a label
Product: [Mono] UI Automation Reporter: Brian Merrell <bgmerrell>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: NEW --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P4 - Low CC: cachen
Version: Release 1.0   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Brian Merrell 2009-05-13 04:35:19 UTC
PROBLEM STATEMENT

In Windows, a ToolStripComboBox appears to get its name from a label if there is one present.  If there is not a label present, the ToolStripComboBox gets its name from text of the selected item in the combo box.  If there is not a selected item nor a label, then the ToolStripComboBox name is blank.

Our behavior, however, matches other combo boxes.  That is, the ToolStripComboBox gets its name from the selected combo box item (except in the case of Bug 503281).

REPRO

1.  Run Accerciser, and open the "API Browser" tab
2.  Run uia2atk/test/samples/toolstripcombobox.py and notice that there is a label that reads "Please Select one Font Size from the ComboBox"
3.  In Accerciser's left pane browse to and select the "combo box" accessible of the toolstripcombobox.py "ipy" application

RESULTS

The name of the combo box accessible is the text of the default selected item (i.e., "8").  (The name of the combo box accessible may be blank due to a bug.)

EXPECTED RESULTS

According to the behavior in Windows, the name of the combo box accessible should be the text of the "Please Select one Font Size from the ComboBox" label.

COMMENTS

I don't really like this behavior and don't really understand why the ToolStripComboBox gets its name in a different way that a regular ComboBox, but our behavior does differ from the Windows behavior.
Comment 1 Brian Merrell 2009-05-13 04:48:15 UTC
The bug mentioned in the RESULTS section is Bug 503291