:art:
authorKevin Sawicki <kevinsawicki@gmail.com>
Wed, 29 Jun 2016 16:42:12 +0000 (09:42 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Wed, 29 Jun 2016 16:46:16 +0000 (09:46 -0700)
spec/api-browser-window-spec.js
spec/api-session-spec.js

index 588ff90..2bc5548 100644 (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)
           }
index 1adb2ed..a7af6d7 100644 (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'})
     }