Add missing r in variable name
This commit is contained in:
parent
58cae1d8de
commit
c2f516067f
1 changed files with 4 additions and 4 deletions
|
@ -1503,7 +1503,7 @@ describe('browser-window module', function () {
|
||||||
|
|
||||||
describe('dev tool extensions', function () {
|
describe('dev tool extensions', function () {
|
||||||
describe('BrowserWindow.addDevToolsExtension', function () {
|
describe('BrowserWindow.addDevToolsExtension', function () {
|
||||||
let showPanelIntevalId
|
let showPanelIntervalId
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
BrowserWindow.removeDevToolsExtension('foo')
|
BrowserWindow.removeDevToolsExtension('foo')
|
||||||
|
@ -1514,7 +1514,7 @@ describe('browser-window module', function () {
|
||||||
assert.equal(BrowserWindow.getDevToolsExtensions().hasOwnProperty('foo'), true)
|
assert.equal(BrowserWindow.getDevToolsExtensions().hasOwnProperty('foo'), true)
|
||||||
|
|
||||||
w.webContents.on('devtools-opened', function () {
|
w.webContents.on('devtools-opened', function () {
|
||||||
showPanelIntevalId = setInterval(function () {
|
showPanelIntervalId = setInterval(function () {
|
||||||
if (w && w.devToolsWebContents) {
|
if (w && w.devToolsWebContents) {
|
||||||
var showLastPanel = function () {
|
var showLastPanel = function () {
|
||||||
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
||||||
|
@ -1522,7 +1522,7 @@ describe('browser-window module', function () {
|
||||||
}
|
}
|
||||||
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
|
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
|
||||||
} else {
|
} else {
|
||||||
clearInterval(showPanelIntevalId)
|
clearInterval(showPanelIntervalId)
|
||||||
}
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
})
|
})
|
||||||
|
@ -1531,7 +1531,7 @@ describe('browser-window module', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
clearInterval(showPanelIntevalId)
|
clearInterval(showPanelIntervalId)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('throws errors for missing manifest.json files', function () {
|
it('throws errors for missing manifest.json files', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue