mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Add more hasRepresentation asserts
This commit is contained in:
@@ -95,9 +95,11 @@ describe('nativeImage module', () => {
|
||||
})
|
||||
assert.deepEqual(imageB.getSize(), {width: 269, height: 95})
|
||||
assert.equal(imageB.hasRepresentation(1.0), false)
|
||||
assert.equal(imageB.hasRepresentation(2.0), true)
|
||||
|
||||
const imageC = nativeImage.createFromDataURL(imageB.toDataURL())
|
||||
assert.deepEqual(imageC.getSize(), {width: 538, height: 190})
|
||||
assert.equal(imageC.hasRepresentation(1.0), false)
|
||||
assert(imageB.toBitmap().equals(imageC.toBitmap()))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user