Bug 1643495 - Revert contextmenu change in test_bug417418 r=masayuki

This change was only needed when the previous version of the patch for Bug 1632425 wanted to move things into contextmenu event handler. This patch reverts the change as 1) the suggested behavior never landed and 2) opening context menu in a test can cause conflict with other tests.

Differential Revision: https://phabricator.services.mozilla.com/D78673
This commit is contained in:
Kagami Sascha Rosylight 2020-06-08 23:35:53 +00:00
parent 05e188ef7b
commit c883340a3b

View File

@ -33,7 +33,6 @@ function resetSelection() {
function runTest() {
var rightClickDown = {type: "mousedown", button: 2},
rightClickUp = {type: "mouseup", button: 2},
rightClickEnd = {type: "contextmenu", button: 2},
singleClickDown = {type: "mousedown", button: 0},
singleClickUp = {type: "mouseup", button: 0};
var selection = window.getSelection();
@ -56,7 +55,6 @@ function runTest() {
resetSelection();
synthesizeMouseAtCenter(img, rightClickDown);
synthesizeMouseAtCenter(img, rightClickUp);
synthesizeMouseAtCenter(img, rightClickEnd);
imgselected = selection.anchorNode == img.parentNode &&
selection.anchorOffset === 1 &&
selection.rangeCount === 1;