tests: the move with a button down starts outside the context menu that the right click left open
Juggler closes a menu on a press only, as the platform does, so the context menu of "frame right click" is still open at the next action. Its first move, to (300, 200), lay over the menu and the page never saw it, on retail or on ours. The points of "move with button down" are now left of and above the right click's point, inside the iframe and on its button; the press of the action closes the menu. The expected event list is unchanged.
This commit is contained in:
1 parent
d7b0cb8638
commit
a3ff6087f1
1 file changed
+7
-2
@@ -140,8 +140,13 @@ def test_the_events_of_the_page_and_of_an_iframe_of_its_process_keep_their_order
|
||||
"frame click": lambda: (page.mouse.move(260, 150), page.mouse.down(), page.mouse.up()),
|
||||
"top double click": lambda: (page.mouse.move(60, 35), page.mouse.click(60, 35, click_count=2)),
|
||||
"frame right click": lambda: (page.mouse.move(260, 150), page.mouse.click(260, 150, button="right")),
|
||||
"move with button down": lambda: (page.mouse.move(300, 200), page.mouse.down(),
|
||||
page.mouse.move(310, 205), page.mouse.move(330, 215), page.mouse.up()),
|
||||
# The action before this one, "frame right click" at (260, 150), leaves its context menu open (Juggler closes a
|
||||
# menu on a press only, as the platform does; Escape would not do it, Juggler sends keys in the content process).
|
||||
# The menu opens at that point and extends right and down, so the points here are left of and above it, inside the
|
||||
# iframe (left 200, top 100) and on its button: a move over the open menu is never seen by the page, on retail or on
|
||||
# ours. The press of this action closes the menu, so the release and the click are the page's own.
|
||||
"move with button down": lambda: (page.mouse.move(225, 115), page.mouse.down(),
|
||||
page.mouse.move(235, 120), page.mouse.move(245, 125), page.mouse.up()),
|
||||
}
|
||||
got = {}
|
||||
for name, action in actions.items():
|
||||
|
||||
Reference in new issue
Block a user