1 This test checks if contextmenu event target is correct when handled at the document level and in the presence of pinch-zoom. To test manually, first pinch-zoom into the page, scroll away from the origin and then then press the menu key. There are three cases to check: nothing focused (the context menu is expected to appear in the top left of the viewport), click on the orange box to focus it then use the menu key, and select some text in the box and use the menu key. Note: on Mac there is no menu key.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS successfullyParsed is true
9 PASS event.clientX is expectedX
10 PASS event.clientY is expectedY
11 PASS event.screenX is expectedScreenX
12 PASS event.screenY is expectedScreenY
13 PASS event.clientX is expectedX
14 PASS event.clientY is expectedY
15 PASS event.screenX is expectedScreenX
16 PASS event.screenY is expectedScreenY
17 PASS event.clientX is expectedX
18 PASS event.clientY is expectedY
19 PASS event.screenX is expectedScreenX
20 PASS event.screenY is expectedScreenY