Add initial previewFile/closeFilePreview test
This commit is contained in:
parent
d5a0dd39a1
commit
0a61aad499
1 changed files with 11 additions and 0 deletions
|
@ -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 () {
|
describe('offscreen rendering', function () {
|
||||||
this.timeout(10000)
|
this.timeout(10000)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue