Bug 509344

Summary: PrintPreivewDialog: clicking zoom toggle button the second time doesn't close the menu
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: P2 - High CC: cachen
Version: Release 1.0   
Target Milestone: Release 1.1   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: pyatspi script referenced in REPRO steps
Client Test Case

Description Brian Merrell 2009-06-03 02:56:59 UTC
PROBLEM STATEMENT

When the zoom toggle button (the button with the down arrow next to the magnifying glass icon on the
tool bar) of the PrintPreviewDialog is clicked (either with the mouse or via the AtkAction interface), a menu appears with several zoom options.  If the toggle button is clicked a second time with the mouse, the menu close;  This is expected. The problem is that if the second click is performed via the AtkAction interface, the menu does not close.

REPRO

1. Run uia2atk/test/samples/printpreviewdialog.py and click on the "PrintPreviewDialog" button to open the PrintPreviewDialog.
2. Run the attached script, which does the following:
   1.  Performs the 'click' action for the zoom toggle button, which drops down 
       the zoom menu.
   2.  Waits one second.
   3.  Performs the 'click' action for the zoom toggle button again.


RESULTS

The zoom menu should close

EXPECTED RESULTS

The zoom menu stays open

COMMENTS

For what it's worth, if you click on the zoom toggle button before the script does its first click (you can do this while the script is sleeping and waiting for you to click on the title bar of the PrintPreviewDialog window), it seems like a second menu opens.
Comment 1 Brian Merrell 2009-06-03 02:58:57 UTC
Created attachment 295874 [details]
pyatspi script referenced in REPRO steps
Comment 2 Brad Taylor 2009-07-14 16:08:36 UTC
Move all P1 and P2 bugs into Release 1.1 milestone.
Comment 3 Brad Taylor 2009-07-16 16:16:17 UTC
I just double-checked, and in Windows, the Invoke action on the Menu Item does close the window.  See attached test case.

The problem seems to be that we call menuItem.PerformClick (), and while it clicks, it doesn't hide the menu.  And it doesn't do this on Windows either, so we need to call something else to make it happen.
Comment 4 Brad Taylor 2009-07-16 16:17:09 UTC
Created attachment 305623 [details]
Client Test Case
Comment 5 Brad Taylor 2009-08-12 14:16:28 UTC
Unassigning as we're focusing on the 2.0 work atm.