From 58473f41abb18ce55736c5baae2f71867294fe6a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 28 Apr 2016 10:04:39 -0700 Subject: [PATCH] Remove deprecated BrowserWindow options specs --- spec/api-browser-window-spec.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index e76821020bd..a8dd8a3780c 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -880,24 +880,4 @@ describe('browser-window module', function () { w.loadURL(server.url) }) }) - - describe('deprecated options', function () { - it('throws a deprecation error for option keys using hyphens instead of camel case', function () { - assert.throws(function () { - return new BrowserWindow({'min-width': 500}) - }, 'min-width is deprecated. Use minWidth instead.') - }) - - it('throws a deprecation error for webPreference keys using hyphens instead of camel case', function () { - assert.throws(function () { - return new BrowserWindow({webPreferences: {'node-integration': false}}) - }, 'node-integration is deprecated. Use nodeIntegration instead.') - }) - - it('throws a deprecation error for option keys that should be set on webPreferences', function () { - assert.throws(function () { - return new BrowserWindow({zoomFactor: 1}) - }, 'options.zoomFactor is deprecated. Use options.webPreferences.zoomFactor instead.') - }) - }) })