Bug 1575097 Part 6: Change RDM test helper function to check innerWidth instead of screen.width. r=gl

Differential Revision: https://phabricator.services.mozilla.com/D43131

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brad Werth 2019-08-25 23:56:04 +00:00
parent f40bd42907
commit e4dcb9887c

View file

@ -728,24 +728,24 @@ async function testViewportZoomWidthAndHeight(
}
if (typeof width !== "undefined" || typeof height !== "undefined") {
const layoutSize = await spawnViewportTask(ui, {}, function() {
const innerSize = await spawnViewportTask(ui, {}, function() {
return {
width: content.screen.width,
height: content.screen.height,
width: content.innerWidth,
height: content.innerHeight,
};
});
if (typeof width !== "undefined") {
is(
layoutSize.width,
innerSize.width,
width,
message + " should have expected layout width."
message + " should have expected inner width."
);
}
if (typeof height !== "undefined") {
is(
layoutSize.height,
innerSize.height,
height,
message + " should have expected layout height."
message + " should have expected inner height."
);
}
}