mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1122992 - Disable the part of test_arrowpanel.xul that fails on OS X 10.10
--HG-- extra : rebase_source : 0797a8d3d624c4be46fceda95509b13582daaf4f
This commit is contained in:
parent
8518e5f5a8
commit
33f329eca3
@ -44,6 +44,8 @@
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
const isOSXYosemite = navigator.userAgent.indexOf("Mac OS X 10.10") != -1;
|
||||
|
||||
var expectedAnchor = null;
|
||||
var expectedSide = "", expectedAnchorEdge = "", expectedPack = "", expectedAlignment = "";
|
||||
var zoomFactor = 1;
|
||||
@ -292,7 +294,8 @@ function checkPanelPosition(panel)
|
||||
adj = hwinpos + parseInt(getComputedStyle(panel, "").marginRight);
|
||||
if (iscentered)
|
||||
adj += Math.round(anchorRect.width) / 2;
|
||||
isWithinHalfPixel(panelRect.right, anchorRect.right * zoomFactor - adj, "anchored on right");
|
||||
if (!isOSXYosemite)
|
||||
isWithinHalfPixel(panelRect.right, anchorRect.right * zoomFactor - adj, "anchored on right");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user