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:
Phil Ringnalda 2015-01-20 08:09:08 -08:00
parent 8518e5f5a8
commit 33f329eca3

View File

@ -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;
}