api-view-spec.js 350 B

123456789101112131415
  1. 'use strict'
  2. const {closeWindow} = require('./window-helpers')
  3. const {TopLevelWindow, View} = require('electron').remote
  4. describe('View', () => {
  5. let w = null
  6. afterEach(() => closeWindow(w).then(() => { w = null }))
  7. it('can be used as content view', () => {
  8. w = new TopLevelWindow({show: false})
  9. w.setContentView(new View())
  10. })
  11. })