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

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

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 5
6 function addItem(key, value) 6 function addItem(key, value)
7 { 7 {
8 localStorage.setItem(key, value); 8 localStorage.setItem(key, value);
9 } 9 }
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 var storages = WebInspector.domStorageModel.storages(); 61 var storages = WebInspector.domStorageModel.storages();
62 for (var i = 0; i < storages.length; ++i) { 62 for (var i = 0; i < storages.length; ++i) {
63 if (storages[i].isLocalStorage) { 63 if (storages[i].isLocalStorage) {
64 storage = storages[i]; 64 storage = storages[i];
65 break; 65 break;
66 } 66 }
67 } 67 }
68 68
69 InspectorTest.assertTrue(!!storage, "Local storage not found."); 69 InspectorTest.assertTrue(!!storage, "Local storage not found.");
70 70
71 WebInspector.panels.resources._showDOMStorage(storage); 71 WebInspector.inspectorView.panel("resources")._showDOMStorage(storag e);
72 view = WebInspector.panels.resources._domStorageViews.get(storage); 72 view = WebInspector.inspectorView.panel("resources")._domStorageView s.get(storage);
73 InspectorTest.addSniffer(view, "_dataGridForDOMStorageItems", viewUp dated); 73 InspectorTest.addSniffer(view, "_dataGridForDOMStorageItems", viewUp dated);
74 }, 74 },
75 75
76 function addItemTest(next) 76 function addItemTest(next)
77 { 77 {
78 var indicesToAdd = [1, 2, 3, 4, 5, 6]; 78 var indicesToAdd = [1, 2, 3, 4, 5, 6];
79 79
80 function itemAdded() 80 function itemAdded()
81 { 81 {
82 dumpDataGrid(view._dataGrid.rootNode()); 82 dumpDataGrid(view._dataGrid.rootNode());
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 ]); 159 ]);
160 } 160 }
161 </script> 161 </script>
162 </head> 162 </head>
163 163
164 <body onload="runTest()"> 164 <body onload="runTest()">
165 <p>Test that storage panel is present and that it contains correct data whenever localStorage is updated.</p> 165 <p>Test that storage panel is present and that it contains correct data whenever localStorage is updated.</p>
166 </body> 166 </body>
167 </html> 167 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698