test: move WebContentsView spec (#19990)

This commit is contained in:
Jeremy Apthorp 2019-08-29 00:17:44 -07:00 committed by Cheng Zhao
parent c03288f458
commit c819fbe852
3 changed files with 14 additions and 18 deletions

View 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())
})