Add initial previewFile/closeFilePreview test

This commit is contained in:
Kevin Sawicki 2016-11-28 13:03:33 -08:00
parent d5a0dd39a1
commit 0a61aad499

View file

@ -1689,6 +1689,17 @@ describe('browser-window module', function () {
})
})
describe('previewFile', function () {
it('opens the path in Quick Look on macOS', function () {
if (process.platform !== 'darwin') return this.skip()
assert.doesNotThrow(function () {
w.previewFile(__filename)
w.closeFilePreview()
})
})
})
describe('offscreen rendering', function () {
this.timeout(10000)