refactor: remove redundant NativeImage::GetBitmap() (#46696)
* refactor: remove redundant NativeImage::GetBitmap() * docs: mark NativeImage.getBitmap() as deprecated * have getBitmap() emit a deprecation warning * docs: update obsolete refefence to getBitmap() * test: update obsolete refefences to getBitmap() --------- Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
dd03cceda0
commit
686ae47696
7 changed files with 36 additions and 22 deletions
|
@ -4599,7 +4599,7 @@ describe('BrowserWindow module', () => {
|
|||
|
||||
try {
|
||||
const expectedSize = rect.width * rect.height * 4;
|
||||
expect(image.getBitmap()).to.be.an.instanceOf(Buffer).with.lengthOf(expectedSize);
|
||||
expect(image.toBitmap()).to.be.an.instanceOf(Buffer).with.lengthOf(expectedSize);
|
||||
done();
|
||||
} catch (e) {
|
||||
done(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue