author | Paolo Amadini <paolo.mozmail@amadzone.org> |
Fri, 24 Aug 2018 08:39:47 +0100 | |
changeset 433260 | 3eff5274ee785a1f8ecaa2467ee061323962cbe8 |
parent 433259 | abd29769ce45f110299ef6bf4c667d5df496d0c1 |
child 433261 | 81d946cdc170db256f875568b109fe5439541c22 |
push id | 34501 |
push user | toros@mozilla.com |
push date | Fri, 24 Aug 2018 09:45:02 +0000 |
treeherder | mozilla-central@190b827aaa2b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | me |
bugs | 1484275 |
milestone | 63.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
browser/components/customizableui/test/browser_1484275_PanelMultiView_toggle_with_other_popup.js | file | annotate | diff | comparison | revisions |
--- a/browser/components/customizableui/test/browser_1484275_PanelMultiView_toggle_with_other_popup.js +++ b/browser/components/customizableui/test/browser_1484275_PanelMultiView_toggle_with_other_popup.js @@ -3,18 +3,18 @@ "use strict"; const TEST_URL = "data:text/html,<html><body></body></html>"; // This code can be consolidated in the EventUtils module (bug 1126772). const isWindows = AppConstants.platform == "win"; const isMac = AppConstants.platform == "macosx"; -const mouseDown = isWindows ? 2 : isMac ? 1 : 4; -const mouseUp = isWindows ? 4 : isMac ? 2 : 7; +const mouseDown = isWindows ? 2 : isMac ? 1 : 4; // eslint-disable-line no-nested-ternary +const mouseUp = isWindows ? 4 : isMac ? 2 : 7; // eslint-disable-line no-nested-ternary const utils = window.windowUtils; const scale = utils.screenPixelsPerCSSPixel; function synthesizeNativeMouseClick(aElement) { let rect = aElement.getBoundingClientRect(); let win = aElement.ownerGlobal; let x = win.mozInnerScreenX + (rect.left + rect.right) / 2; let y = win.mozInnerScreenY + (rect.top + rect.bottom) / 2;