From 2fe83bc5f0c2ebe0c12ecb07ec5c5f9f5fc637b9 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 28 Jun 2016 13:01:51 -0700 Subject: [PATCH 1/2] Add failing spec for no specified storage keys --- spec/api-browser-window-spec.js | 7 +++++-- spec/fixtures/devtools-extensions/foo/index.html | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 25b852946ff..b7b647e1c4e 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1025,7 +1025,7 @@ describe('browser-window module', function () { }, /Unexpected token }/) }) - describe('when the devtools is docked', function () { + describe.only('when the devtools is docked', function () { it('creates the extension', function (done) { w.webContents.openDevTools({mode: 'bottom'}) @@ -1033,7 +1033,10 @@ describe('browser-window module', function () { assert.equal(message.runtimeId, 'foo') assert.equal(message.tabId, w.webContents.id) assert.equal(message.i18nString, 'foo - bar (baz)') - assert.deepEqual(message.storageItems, {foo: 'bar'}) + assert.deepEqual(message.storageItems, { + local: {hello: 'world'}, + sync: {foo: 'bar'} + }) done() }) }) diff --git a/spec/fixtures/devtools-extensions/foo/index.html b/spec/fixtures/devtools-extensions/foo/index.html index b10288227ac..70db43a37c2 100644 --- a/spec/fixtures/devtools-extensions/foo/index.html +++ b/spec/fixtures/devtools-extensions/foo/index.html @@ -6,16 +6,25 @@