We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7363314 commit c97b57eCopy full SHA for c97b57e
test/image/compare_pixels_test.js
@@ -117,6 +117,13 @@ for (let mockName of allMockList) {
117
}
118
console.log('+ test:', mockName);
119
120
+ if (!common.doesFileExist(base)) {
121
+ console.error('baseline image missing');
122
+ fs.copyFileSync(test, diff);
123
+ failed.add(mockName);
124
+ continue;
125
+ }
126
+
127
const img0 = PNG.sync.read(fs.readFileSync(base));
128
const img1 = PNG.sync.read(fs.readFileSync(test));
129
for (const key of ['height', 'width']) {
0 commit comments