add tests for View and WebContentsView
This commit is contained in:
parent
3b81312cf7
commit
300c7a4b04
2 changed files with 39 additions and 0 deletions
14
spec/api-view-spec.js
Normal file
14
spec/api-view-spec.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
'use strict'
|
||||
|
||||
const {closeWindow} = require('./window-helpers')
|
||||
const {TopLevelWindow, View} = require('electron').remote
|
||||
|
||||
describe('View', () => {
|
||||
let w = null
|
||||
afterEach(() => closeWindow(w).then(() => { w = null }))
|
||||
|
||||
it('can be used as content view', () => {
|
||||
w = new TopLevelWindow({show: false})
|
||||
w.setContentView(new View())
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue