feat: add webContents.getMediaSourceId() method (#31204)
* feat: add webContents.getMediaSourceId() method * fix: account for null frame_hosts in webContents.getMediaSourceId() * fix: move webContents.getMediaSourceId definition to be more organised * fix: move webContents.getMediaSourceId implementation * fix: move webContents.getMediaSourceId docs
This commit is contained in:
parent
63eed52626
commit
23cdf65c53
4 changed files with 47 additions and 0 deletions
|
@ -838,6 +838,14 @@ describe('webContents module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('getMediaSourceId()', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('returns a valid stream id', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
expect(w.webContents.getMediaSourceId(w.webContents)).to.be.a('string').that.is.not.empty();
|
||||
});
|
||||
});
|
||||
|
||||
describe('userAgent APIs', () => {
|
||||
it('can set the user agent (functions)', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue