fix: return pointer instead of pointer's content (#16014)
This commit is contained in:
parent
f3c64ea9d8
commit
624ade2c25
9 changed files with 302 additions and 253 deletions
|
@ -3054,6 +3054,19 @@ describe('BrowserWindow module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
describe('window.getNativeWindowHandle()', () => {
|
||||
if (!nativeModulesEnabled) {
|
||||
this.skip()
|
||||
}
|
||||
|
||||
it('returns valid handle', () => {
|
||||
// The module's source code is hosted at
|
||||
// https://github.com/electron/node-is-valid-window
|
||||
const isValidWindow = remote.require('is-valid-window')
|
||||
assert.ok(isValidWindow(w.getNativeWindowHandle()))
|
||||
})
|
||||
})
|
||||
|
||||
describe('extensions and dev tools extensions', () => {
|
||||
let showPanelTimeoutId
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue