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() |