mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
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:
parent
9b9c9ee29e
commit
919d2fdacb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user