forked from mirrors/gecko-dev
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:
parent
f40bd42907
commit
e4dcb9887c
1 changed files with 7 additions and 7 deletions
|
|
@ -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."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue