Bugzilla – Bug 509344
PrintPreivewDialog: clicking zoom toggle button the second time doesn't close the menu
Last modified: 2009-08-12 14:16:28 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.
Created attachment 295874 [details] pyatspi script referenced in REPRO steps
Move all P1 and P2 bugs into Release 1.1 milestone.
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.
Created attachment 305623 [details] Client Test Case
Unassigning as we're focusing on the 2.0 work atm.