Update devtools extension spec for chrome.storage

This commit is contained in:
Jhen 2016-11-15 19:41:23 +08:00
parent b86dff45d7
commit 8b30439d7f
2 changed files with 67 additions and 9 deletions

View file

@ -1384,8 +1384,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()
})