feat: add tabbingIdentifier
property to BrowserWindow
(#39980)
feat: add tabbingIdentifier property to BrowserWindow
This commit is contained in:
parent
04b2ba84cd
commit
713d8c4167
8 changed files with 40 additions and 6 deletions
|
@ -2060,10 +2060,7 @@ describe('BrowserWindow module', () => {
|
|||
beforeEach(() => {
|
||||
w = new BrowserWindow({ show: false });
|
||||
});
|
||||
afterEach(async () => {
|
||||
await closeWindow(w);
|
||||
w = null as unknown as BrowserWindow;
|
||||
});
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
describe('BrowserWindow.selectPreviousTab()', () => {
|
||||
it('does not throw', () => {
|
||||
|
@ -2132,6 +2129,18 @@ describe('BrowserWindow module', () => {
|
|||
}).to.throw('AddTabbedWindow cannot be called by a window on itself.');
|
||||
});
|
||||
});
|
||||
|
||||
describe('BrowserWindow.tabbingIdentifier', () => {
|
||||
it('is undefined if no tabbingIdentifier was set', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
expect(w.tabbingIdentifier).to.be.undefined('tabbingIdentifier');
|
||||
});
|
||||
|
||||
it('returns the window tabbingIdentifier', () => {
|
||||
const w = new BrowserWindow({ show: false, tabbingIdentifier: 'group1' });
|
||||
expect(w.tabbingIdentifier).to.equal('group1');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('autoHideMenuBar state', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue