mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Assert image size as well
This commit is contained in:
@@ -10,6 +10,8 @@ describe('nativeImage module', () => {
|
||||
const nonAbsolutePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
|
||||
const image = nativeImage.createFromPath(nonAbsolutePath);
|
||||
assert(!image.isEmpty());
|
||||
assert.equal(image.getSize().height, 190);
|
||||
assert.equal(image.getSize().width, 538);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user