Bugzilla – Bug 500400
progress bar accessible gets its name from a ToolStripLabel instead of a Label
Last modified: 2009-07-14 17:49:45 UTC
PROBLEM STATEMENT: According to MSDN (http://msdn.microsoft.com/en-us/library/ms743681.aspx): "The progress bar control typically gets its name from a static text label. If there is not a static text label the application developer must expose a value for the Name property." However, for the same sample (uia2atk/test/samples/statusstrip.py), the progress bar accessible gets its name from a different label depending on whether the sample is being run in Linux or Windows. The name of the progress bar accessible in Linux is "ToolStripLabel Text..." (which is actually the text of a ToolStripStatusLabel control), but the initial name of the progress bar accessible in Windows "Examples for: StatusStrip" (which is actually a Label control). REPRO IN LINUX: 1. Run uia2atk/test/samples/statusstrip.py 2. Run Accerciser 3. Browse to the accessible with the progress bar role in Accerciser's left pane IN WINDOWS: 1. Run uia2atk/test/samples/statusstrip.py 2. Run UI Spy 3. Browse to the progress bar accessible in UI Spy's left pane RESULTS IN LINUX: The name of the progress bar accessible is "ToolstripLabelText.." IN WINDOWS: The name of the progress bar accessible is "Examples for: StatusStrip." EXPECTED RESULTS I would expect that the Windows behavior is correct. I.e., I would expect the name of the progress bar accessible be "Examples for: StatusStrip." in both Windows and Linux.
We can probably do better here, but in early testing of Label/Name associations, it was impossible to determine the algorithm used by Microsoft to match controls with their labels, so we came up with our own way to find the "nearest" label. But given that this is text from a ToolStripLabel, which is completely ridiculous, it's probably a more straightforward bug. :-)
trackbar also has such a little bit similar to this issue, and Mike resolve it. post here as a reference. bug 472767 (https://bugzilla.novell.com/show_bug.cgi?id=472767)
Updating the bug summary to better describe the bug (based on Sandy's Comment #1). Also bumping to P3, because I don't think it's too terribly important (relative to some other bugs) that the progress bar name be correct.
Move all P1 and P2 bugs into Release 1.1 milestone.