fix: return pointer instead of pointer's content (#16014)

This commit is contained in:
Cheng Zhao 2018-12-12 02:45:55 +09:00 committed by John Kleinschmidt
parent f3c64ea9d8
commit 624ade2c25
9 changed files with 302 additions and 253 deletions

View file

@ -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