Merge pull request #7923 from jhen0409/patch-1
Add support remove / clear for chrome.storage
This commit is contained in:
commit
eeffa42513
3 changed files with 88 additions and 9 deletions
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue