Chrome changed the devtools url
chrome-devtools:// to devtools://
28b21a67f0
This commit is contained in:
parent
aa00b19c92
commit
cf5224140b
13 changed files with 14 additions and 16 deletions
|
@ -190,7 +190,7 @@ describe('webContents module', () => {
|
|||
w.webContents.setDevToolsWebContents(devtools.webContents)
|
||||
w.webContents.openDevTools()
|
||||
await promise
|
||||
expect(devtools.getURL().startsWith('chrome-devtools://devtools')).to.be.true()
|
||||
expect(devtools.getURL().startsWith('devtools://devtools')).to.be.true()
|
||||
const result = await devtools.webContents.executeJavaScript('InspectorFrontendHost.constructor.name')
|
||||
expect(result).to.equal('InspectorFrontendHostImpl')
|
||||
devtools.destroy()
|
||||
|
|
|
@ -401,7 +401,7 @@ describe('chromium feature', () => {
|
|||
}).catch(done)
|
||||
})
|
||||
})
|
||||
b = window.open('chrome-devtools://devtools/bundled/inspector.html', '', 'nodeIntegration=no,show=no')
|
||||
b = window.open('devtools://devtools/bundled/inspector.html', '', 'nodeIntegration=no,show=no')
|
||||
})
|
||||
|
||||
it('disables JavaScript when it is disabled on the parent window', (done) => {
|
||||
|
|
|
@ -787,7 +787,7 @@ describe('<webview> tag', function () {
|
|||
|
||||
// Its WebContents should be a DevTools.
|
||||
const devtools = webview2.getWebContents()
|
||||
assert.ok(devtools.getURL().startsWith('chrome-devtools://devtools'))
|
||||
assert.ok(devtools.getURL().startsWith('devtools://devtools'))
|
||||
|
||||
const name = await devtools.executeJavaScript('InspectorFrontendHost.constructor.name')
|
||||
document.body.removeChild(webview2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue