Merge pull request #10321 from kaylanm/macos-native-tab-api

🍎 Add macOS native tab methods to window API
This commit is contained in:
Cheng Zhao 2017-09-11 18:49:56 +09:00 committed by GitHub
commit 10ab870237
8 changed files with 179 additions and 0 deletions

View file

@ -649,6 +649,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 () {