From 1b036a284d53f1e81c82518962ded96a15fdbac2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 20 Dec 2016 09:07:48 -0800 Subject: [PATCH] Add basic inspectElement spec --- spec/api-web-contents-spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/api-web-contents-spec.js b/spec/api-web-contents-spec.js index ada1a1be46fe..fb9c17125aa2 100644 --- a/spec/api-web-contents-spec.js +++ b/spec/api-web-contents-spec.js @@ -277,4 +277,12 @@ describe('webContents module', function () { done() }) }) + + it('supports inspecting an element in the devtools', function (done) { + w.loadURL('about:blank') + w.webContents.once('devtools-opened', function () { + done() + }) + w.webContents.inspectElement(10, 10) + }) })