test: move WebContentsView spec (#19990)
This commit is contained in:
parent
c03288f458
commit
c819fbe852
3 changed files with 14 additions and 18 deletions
7
spec-main/fixtures/api/leak-exit-webcontentsview.js
Normal file
7
spec-main/fixtures/api/leak-exit-webcontentsview.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const { WebContentsView, app, webContents } = require('electron')
|
||||
app.on('ready', function () {
|
||||
const web = webContents.create({})
|
||||
new WebContentsView(web) // eslint-disable-line
|
||||
|
||||
process.nextTick(() => app.quit())
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue