mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-28 06:07:53 +03:00
test(screencast): do print actual pixels on failure (#3442)
This commit is contained in:
parent
d9727c62df
commit
4bad89fa37
@ -91,7 +91,7 @@ function expectAll(pixels, rgbaPredicate) {
|
||||
checkPixel(i);
|
||||
} catch(e) {
|
||||
// Log pixel values on failure.
|
||||
console.log(pixels);
|
||||
e.message += `\n\nActual pixels=[${pixels}]`;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user