Commit d516f7d6 authored by Stephen A Pohl's avatar Stephen A Pohl
Browse files

Bug 1719427: Fix scrollbar tests. r=emilio

parent 78a1e862
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,7 +27,8 @@ function init()
  downButton = SpecialPowers.unwrap(
    SpecialPowers.InspectorUtils.getChildrenForNode(scrollbar, true)[4]);
  if (!downButton) {
    ok(navigator.userAgent.indexOf("Linux") !== -1, "Theme doesn't support scrollbar buttons");
    ok(navigator.userAgent.indexOf("Linux") !== -1 ||
       navigator.userAgent.indexOf("Mac") !== -1, "Theme doesn't support scrollbar buttons");
    SimpleTest.finish();
    return;
  }
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ function runTest() {
    ["", "Small"].forEach(function (size) {
      var elem = document.getElementById(orient + size);
      var thumbRect = SpecialPowers.unwrap(
        SpecialPowers.InspectorUtils.getChildrenForNode(elem, true)[2])
        SpecialPowers.InspectorUtils.getChildrenForNode(elem, true)[0])
        .childNodes[0].getBoundingClientRect();
      var sizeToCheck = orient == "horizontal" ? "width" : "height";
      // var expectedSize = size == "Small" ? 19 : 26;