Bug 929750 - fix (literal) edge case in overflow scroll test, r=jaws

--HG--
extra : rebase_source : ab749cade090d47eb772454ed0138fd27c4db72e
This commit is contained in:
Gijs Kruitbosch 2013-10-23 20:25:03 +02:00
parent e5ab9bd6d8
commit b3e611f65d

View File

@ -62,7 +62,11 @@ function runOverflowTests(aEvent) {
EventUtils.synthesizeMouse(upButton, 1, 1, {});
isLeft(element, "Scrolled one tab to the left with a single click");
element = elementFromPoint(left(scrollbox) - width(scrollbox));
let elementPoint = left(scrollbox) - width(scrollbox);
element = elementFromPoint(elementPoint);
if (elementPoint == right(element)) {
element = element.nextSibling;
}
EventUtils.synthesizeMouse(upButton, 1, 1, {clickCount: 2});
isLeft(element, "Scrolled one page of tabs with a double click");