2018-05-18 10:36:43 +03:00
|
|
|
'use strict'
|
|
|
|
|
2018-09-13 19:10:51 +03:00
|
|
|
const { closeWindow } = require('./window-helpers')
|
|
|
|
const { TopLevelWindow, View } = require('electron').remote
|
2018-05-18 10:36:43 +03:00
|
|
|
|
|
|
|
describe('View', () => {
|
|
|
|
let w = null
|
|
|
|
afterEach(() => closeWindow(w).then(() => { w = null }))
|
|
|
|
|
|
|
|
it('can be used as content view', () => {
|
2018-09-13 19:10:51 +03:00
|
|
|
w = new TopLevelWindow({ show: false })
|
2018-05-18 10:36:43 +03:00
|
|
|
w.setContentView(new View())
|
|
|
|
})
|
|
|
|
})
|