test(screencast): do print actual pixels on failure (#3442)

This commit is contained in:
Yury Semikhatsky 2020-08-13 10:45:06 -07:00 committed by GitHub
parent d9727c62df
commit 4bad89fa37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}