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

Unified Diff: LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt

Issue 23480006: DevTools: DOMStorage action history must be reset once page/script modifies the DOM storage (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
Index: LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt
diff --git a/LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt b/LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt
index 86a0690daae60411355ed10284a11ad5c3736592..0de3e0d71133deb8da644cb2a9242a34cee87506 100644
--- a/LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt
+++ b/LayoutTests/inspector/storage-panel-dom-storage-undo-redo-expected.txt
@@ -11,6 +11,7 @@ Running: redoLocalStorageWithEmptyStack
LocalStorage contents:[]
Running: localStorageUndoInterlacedWithAddition
+LocalStorage contents:[a1=b1,a2=b2]
LocalStorage contents:[a1=b1]
LocalStorage contents:[a1=b1,a3=b3]
LocalStorage contents:[a1=b1]
@@ -69,6 +70,21 @@ LocalStorage contents:[a1=b1,a2=b2,x10=y10,x11=y11,x12=y12,x13=y13,x14=y14,x15=y
Performing undo operation three times the depth i.e. 60 times but only last 20 operations are undone
LocalStorage contents:[a1=b1,a2=b2,x10=y10,x1=y1,x2=y2,x3=y3,x4=y4,x5=y5,x6=y6,x7=y7,x8=y8,x9=y9]
+Running: resetDOMStorageHistoryUponPageModification
+Adding u1=v1 and u2=v2 in the localStorage
+LocalStorage contents:[a1=b1,a2=b2,u1=v1,u2=v2,x10=y10,x1=y1,x2=y2,x3=y3,x4=y4,x5=y5,x6=y6,x7=y7,x8=y8,x9=y9]
+
+Performing undo for removing u2=v2
+LocalStorage contents:[a1=b1,a2=b2,u1=v1,x10=y10,x1=y1,x2=y2,x3=y3,x4=y4,x5=y5,x6=y6,x7=y7,x8=y8,x9=y9]
+
+Page has modified the storage by adding u3=v3
+
+Undo wont work anymore as page modification has cleared the history.
+LocalStorage contents:[a1=b1,a2=b2,u1=v1,u3=v3,x10=y10,x1=y1,x2=y2,x3=y3,x4=y4,x5=y5,x6=y6,x7=y7,x8=y8,x9=y9]
+
+Redo wont work anymore as page modification has cleared the history.
+LocalStorage contents:[a1=b1,a2=b2,u1=v1,u3=v3,x10=y10,x1=y1,x2=y2,x3=y3,x4=y4,x5=y5,x6=y6,x7=y7,x8=y8,x9=y9]
+
Running: clearDOMStorageAndFinish
Finished DOMStorage undo/redo tests and cleared localStorage and sessionStorage entries.

Powered by Google App Engine
This is Rietveld 408576698