mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Bug 1866383. Provide useful error reporting for page sizes mismatches in WPT Print Reftests. r=jgraham,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D195999
This commit is contained in:
parent
473cc4095f
commit
1a8f95043b
@ -529,6 +529,17 @@ reftest.Runner = class {
|
||||
lazy.logger.debug(
|
||||
`rhs canvas size ${rhs.canvas.width}x${rhs.canvas.height}`
|
||||
);
|
||||
if (
|
||||
lhs.canvas.width != rhs.canvas.width ||
|
||||
lhs.canvas.height != rhs.canvas.height
|
||||
) {
|
||||
msg =
|
||||
`Got different page sizes; test is ` +
|
||||
`${lhs.canvas.width}x${lhs.canvas.height}px, ref is ` +
|
||||
`${rhs.canvas.width}x${rhs.canvas.height}px`;
|
||||
passed = false;
|
||||
break;
|
||||
}
|
||||
try {
|
||||
pixelsDifferent = this.windowUtils.compareCanvases(
|
||||
lhs.canvas,
|
||||
|
Loading…
x
Reference in New Issue
Block a user