From 357caf8991f5f225f57e450b8ed9cb91fb6c2975 Mon Sep 17 00:00:00 2001 From: Hari Krishna Reddy Juturu Date: Sat, 6 May 2017 22:41:05 -0700 Subject: [PATCH] fixing spec --- spec/webview-spec.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/spec/webview-spec.js b/spec/webview-spec.js index cb8f8b08866c..4f838f04c36d 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -83,38 +83,6 @@ describe(' tag', function () { document.body.appendChild(webview) }) - it('disables node integration when disabled on the parent BrowserWindow', function (done) { - ipcMain.once('answer', function (event, typeofProcess) { - try { - assert.equal(typeofProcess, 'undefined') - done() - } finally { - b.close() - } - }) - - var windowUrl = require('url').format({ - pathname: `${fixtures}/pages/webview-no-node-integration-on-window.html`, - protocol: 'file', - query: { - p: `${fixtures}/pages/web-view-log-process.html` - }, - slashes: true - }) - var preload = path.join(fixtures, 'module', 'answer.js') - - var b = new BrowserWindow({ - height: 400, - width: 400, - show: false, - webPreferences: { - preload: preload, - nodeIntegration: false - } - }) - b.loadURL(windowUrl) - }) - it('navigates to new page when changed', function (done) { var listener = function () { webview.src = 'file://' + fixtures + '/pages/b.html'