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

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

Issue 1924153002: DevTools: reorder items in the resources panel sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 = WebInspector.panels.resources.indexedDBListTreeEl ement; 7 var indexedDBTreeElement = WebInspector.panels.resources.indexedDBListTreeEl ement;
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.titleText ); 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;
18 } 18 }
19 for (var j = 0; j < databaseTreeElement.childCount(); ++j) { 19 for (var j = 0; j < databaseTreeElement.childCount(); ++j) {
20 var objectStoreTreeElement = databaseTreeElement.childAt(j); 20 var objectStoreTreeElement = databaseTreeElement.childAt(j);
21 InspectorTest.addResult(" Object store: " + objectStoreTreeEl ement.titleText); 21 InspectorTest.addResult(" Object store: " + objectStoreTreeEl ement.title);
22 if (!objectStoreTreeElement.childCount()) { 22 if (!objectStoreTreeElement.childCount()) {
23 InspectorTest.addResult(" (no indexes)"); 23 InspectorTest.addResult(" (no indexes)");
24 continue; 24 continue;
25 } 25 }
26 for (var j = 0; j < objectStoreTreeElement.childCount(); ++j) { 26 for (var j = 0; j < objectStoreTreeElement.childCount(); ++j) {
27 var indexTreeElement = objectStoreTreeElement.childAt(j); 27 var indexTreeElement = objectStoreTreeElement.childAt(j);
28 InspectorTest.addResult(" Index: " + indexTreeElement .titleText); 28 InspectorTest.addResult(" Index: " + indexTreeElement .title);
29 } 29 }
30 } 30 }
31 } 31 }
32 } 32 }
33 33
34 var lastCallbackId = 0; 34 var lastCallbackId = 0;
35 var callbacks = {}; 35 var callbacks = {};
36 var callbackIdPrefix = "InspectorTest.IndexedDB_callback"; 36 var callbackIdPrefix = "InspectorTest.IndexedDB_callback";
37 InspectorTest.evaluateWithCallback = function(frameId, methodName, parameters, c allback) 37 InspectorTest.evaluateWithCallback = function(frameId, methodName, parameters, c allback)
38 { 38 {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 { 246 {
247 var request; 247 var request;
248 if (key) 248 if (key)
249 request = objectStore.add(value, key); 249 request = objectStore.add(value, key);
250 else 250 else
251 request = objectStore.add(value); 251 request = objectStore.add(value);
252 request.onerror = onIndexedDBError; 252 request.onerror = onIndexedDBError;
253 request.onsuccess = commitCallback; 253 request.onsuccess = commitCallback;
254 } 254 }
255 } 255 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698