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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/indexeddb/indexeddb-test.js

Issue 2747123008: [DevTools] Separate old Application tab code (Closed)
Patch Set: [DevTools] Separate old Application tab code Created 3 years, 9 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
OLDNEW
1 var initialize_IndexedDBTest = function() { 1 var initialize_IndexedDBTest = function() {
2 InspectorTest.preloadPanel("resources"); 2 InspectorTest.preloadPanel("resources");
3 3
4 InspectorTest.dumpIndexedDBTree = function() 4 InspectorTest.dumpIndexedDBTree = function()
5 { 5 {
6 InspectorTest.addResult("Dumping IndexedDB tree:"); 6 InspectorTest.addResult("Dumping IndexedDB tree:");
7 var indexedDBTreeElement = UI.panels.resources.indexedDBListTreeElement; 7 var indexedDBTreeElement = UI.panels.resources._sidebar.indexedDBListTreeEle ment;
8 if (!indexedDBTreeElement.childCount()) { 8 if (!indexedDBTreeElement.childCount()) {
9 InspectorTest.addResult(" (empty)"); 9 InspectorTest.addResult(" (empty)");
10 return; 10 return;
11 } 11 }
12 for (var i = 0; i < indexedDBTreeElement.childCount(); ++i) { 12 for (var i = 0; i < indexedDBTreeElement.childCount(); ++i) {
13 var databaseTreeElement = indexedDBTreeElement.childAt(i); 13 var databaseTreeElement = indexedDBTreeElement.childAt(i);
14 InspectorTest.addResult(" database: " + databaseTreeElement.title); 14 InspectorTest.addResult(" database: " + databaseTreeElement.title);
15 if (!databaseTreeElement.childCount()) { 15 if (!databaseTreeElement.childCount()) {
16 InspectorTest.addResult(" (no object stores)"); 16 InspectorTest.addResult(" (no object stores)");
17 continue; 17 continue;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 { 253 {
254 var request; 254 var request;
255 if (key) 255 if (key)
256 request = objectStore.add(value, key); 256 request = objectStore.add(value, key);
257 else 257 else
258 request = objectStore.add(value); 258 request = objectStore.add(value);
259 request.onerror = onIndexedDBError; 259 request.onerror = onIndexedDBError;
260 request.onsuccess = commitCallback; 260 request.onsuccess = commitCallback;
261 } 261 }
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698