mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🎨
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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'})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user