|
@@ -1122,7 +1122,7 @@ describe('chromium features', () => {
|
|
|
new Promise((resolve, reject) => {
|
|
|
try {
|
|
|
let req = window.indexedDB.open('${dbName}');
|
|
|
- req.onsuccess = (event) => {
|
|
|
+ req.onsuccess = (event) => {
|
|
|
let db = req.result;
|
|
|
resolve(db.name);
|
|
|
}
|
|
@@ -1266,6 +1266,28 @@ describe('chromium features', () => {
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ describe('chrome://media-internals', () => {
|
|
|
+ it('loads the page successfully', async () => {
|
|
|
+ const w = new BrowserWindow({ show: false });
|
|
|
+ w.loadURL('chrome://media-internals');
|
|
|
+ const pageExists = await w.webContents.executeJavaScript(
|
|
|
+ "window.hasOwnProperty('chrome') && window.chrome.hasOwnProperty('send')"
|
|
|
+ );
|
|
|
+ expect(pageExists).to.be.true();
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ describe('chrome://webrtc-internals', () => {
|
|
|
+ it('loads the page successfully', async () => {
|
|
|
+ const w = new BrowserWindow({ show: false });
|
|
|
+ w.loadURL('chrome://webrtc-internals');
|
|
|
+ const pageExists = await w.webContents.executeJavaScript(
|
|
|
+ "window.hasOwnProperty('chrome') && window.chrome.hasOwnProperty('send')"
|
|
|
+ );
|
|
|
+ expect(pageExists).to.be.true();
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
describe('font fallback', () => {
|