🍎 Add macOS native tab methods to window API
This commit is contained in:
parent
796664ef1c
commit
b4428e7e41
8 changed files with 179 additions and 0 deletions
|
@ -648,6 +648,66 @@ describe('BrowserWindow module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.selectPreviousTab()', () => {
|
||||
it('does not throw', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.selectPreviousTab()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.selectNextTab()', () => {
|
||||
it('does not throw', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.selectNextTab()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.mergeAllWindows()', () => {
|
||||
it('does not throw', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.mergeAllWindows()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.moveTabToNewWindow()', () => {
|
||||
it('does not throw', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.moveTabToNewWindow()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.toggleTabBar()', () => {
|
||||
it('does not throw', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.toggleTabBar()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.setVibrancy(type)', function () {
|
||||
it('allows setting, changing, and removing the vibrancy', function () {
|
||||
assert.doesNotThrow(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue