Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: LayoutTests/inspector/storage-panel-dom-storage-update.html

Issue 22396002: function storageForId() should be used in _domStorageItemUpdated instead of DOMStorageModel._storag… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/storage-panel-dom-storage-update-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/storage-panel-dom-storage-update.html
diff --git a/LayoutTests/inspector/storage-panel-dom-storage-update.html b/LayoutTests/inspector/storage-panel-dom-storage-update.html
index 9c317fff6a4f05eac621a364b67ebb569006bc74..cb4df35818d2d3615d9ff2cd44a0f6bc0968d19a 100644
--- a/LayoutTests/inspector/storage-panel-dom-storage-update.html
+++ b/LayoutTests/inspector/storage-panel-dom-storage-update.html
@@ -13,6 +13,11 @@ function removeItem(key)
localStorage.removeItem(key);
}
+function updateItem(key, newValue)
+{
+ localStorage.setItem(key, newValue);
+}
+
function clear()
{
localStorage.clear();
@@ -122,6 +127,21 @@ function test()
removeItem();
},
+ function updateItemTest(next)
+ {
+ InspectorTest.addResult("");
+ InspectorTest.addSniffer(view.domStorageModel, "_domStorageItemUpdated", itemUpdated);
+ var command = "updateItem('key2', 'VALUE2');";
+ InspectorTest.addResult(command);
+ InspectorTest.evaluateInPage(command);
+
+ function itemUpdated()
+ {
+ dumpDataGrid(view._dataGrid.rootNode());
+ next();
+ }
+ },
+
function clearTest(next)
{
function itemsCleared()
« no previous file with comments | « no previous file | LayoutTests/inspector/storage-panel-dom-storage-update-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698