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);
|
checkPixel(i);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// Log pixel values on failure.
|
// Log pixel values on failure.
|
||||||
console.log(pixels);
|
e.message += `\n\nActual pixels=[${pixels}]`;
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue