Bug 1294442: Follow-up: Fix additional windows-only test failures. r=bustage

MozReview-Commit-ID: 2fz7eeC7WLm

--HG--
extra : rebase_source : 0885b5701013ed9e287f5d19e15ccbdcb1b02439
This commit is contained in:
Kris Maglione 2016-10-19 18:52:15 -07:00
parent 9b9c9ee29e
commit 919d2fdacb

View File

@ -85,8 +85,13 @@ add_task(function* testPageActionPopupResize() {
yield setSize(1400);
is(panelWindow.innerWidth, 800, "Panel window width");
ok(body.clientWidth <= 800, "Panel body width ${body.clientWidth} is less than 800");
if (AppConstants.platform == "win") {
ok(panelWindow.innerWidth >= 750 && panelWindow.innerWidth <= 800,
`Panel window width ${panelWindow.innerWidth} is in acceptable range`);
} else {
is(panelWindow.innerWidth, 800, "Panel window width");
}
ok(body.clientWidth <= 800, `Panel body width ${body.clientWidth} is less than 800`);
is(body.scrollWidth, 1400, "Panel body scroll width");
is(panelWindow.innerHeight, 600, "Panel window height");