electron/spec/api-view-spec.js

15 lines
356 B
JavaScript
Raw Normal View History

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