Merge pull request #7923 from jhen0409/patch-1

Add support remove / clear for chrome.storage
This commit is contained in:
Kevin Sawicki 2016-11-15 09:04:45 -08:00 committed by GitHub
commit eeffa42513
3 changed files with 88 additions and 9 deletions

View file

@ -1475,8 +1475,16 @@ describe('browser-window module', function () {
assert.equal(message.tabId, w.webContents.id)
assert.equal(message.i18nString, 'foo - bar (baz)')
assert.deepEqual(message.storageItems, {
local: {hello: 'world'},
sync: {foo: 'bar'}
local: {
set: {hello: 'world', world: 'hello'},
remove: {world: 'hello'},
clear: {}
},
sync: {
set: {foo: 'bar', bar: 'foo'},
remove: {foo: 'bar'},
clear: {}
}
})
done()
})