feat(NativeWindowMac): addTabbedWindow
Add support for the [`NSWindow addTabbedWindow`][nsw] method on MacOSX This plays nicely with the changes from #9052 and #9725 Usage samples available in [this commit][c] in my fork of `electron-quick-start` [nsw]:1855947
-addtabbedwindow [c]:79f06591df
This commit is contained in:
parent
68d35dbeb1
commit
1bb042a661
8 changed files with 46 additions and 0 deletions
|
@ -709,6 +709,18 @@ describe('BrowserWindow module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.addTabbedWindow()', function () {
|
||||
it('does not throw', function () {
|
||||
if (process.platform !== 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
w.addTabbedWindow(new BrowserWindow({}))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
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