This commit is contained in:
Kevin Sawicki 2016-06-29 09:42:12 -07:00
parent 197ec98800
commit 8b35814d10
2 changed files with 3 additions and 3 deletions

View file

@ -1004,7 +1004,7 @@ describe('browser-window module', function () {
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId)
}
w.devToolsWebContents.executeJavaScript('(' + showLastPanel.toString() + ')()')
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
} else {
clearInterval(showPanelIntevalId)
}
@ -1080,7 +1080,7 @@ describe('browser-window module', function () {
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId)
}
w.devToolsWebContents.executeJavaScript('(' + showLastPanel.toString() + ')()')
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
} else {
clearInterval(showPanelIntevalId)
}

View file

@ -285,7 +285,7 @@ describe('session module', function () {
const protocolName = 'sp'
const partitionProtocol = session.fromPartition(partitionName).protocol
const protocol = session.defaultSession.protocol
const handler = function (_, callback) {
const handler = function (ignoredError, callback) {
callback({data: 'test', mimeType: 'text/html'})
}