Bug 509344 - PrintPreivewDialog: clicking zoom toggle button the second time doesn't close the menu
Summary: PrintPreivewDialog: clicking zoom toggle button the second time doesn't close...
Status: NEW
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: x86 openSUSE 11.1
: P2 - High : Normal
Target Milestone: Release 1.1
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 02:56 UTC by Brian Merrell
Modified: 2009-08-12 14:16 UTC (History)
1 user (show)

See Also:
Found By: Integration Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
pyatspi script referenced in REPRO steps (998 bytes, text/plain)
2009-06-03 02:58 UTC, Brian Merrell
Details
Client Test Case (2.23 KB, application/octet-stream)
2009-07-16 16:17 UTC, Brad Taylor
Details

Note You need to log in before you can comment on or make changes to this bug.
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.