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

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

Issue 2172753002: [DevTools] No longer store security origins in ResourceTreeModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test failures Created 4 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 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;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 InspectorTest.deleteObjectStoreIndex = function(frameId, databaseName, objectSto reName, objectStoreIndexName, callback) 92 InspectorTest.deleteObjectStoreIndex = function(frameId, databaseName, objectSto reName, objectStoreIndexName, callback)
93 { 93 {
94 InspectorTest.evaluateWithCallback(frameId, "deleteObjectStoreIndex", [datab aseName, objectStoreName, objectStoreIndexName], callback) 94 InspectorTest.evaluateWithCallback(frameId, "deleteObjectStoreIndex", [datab aseName, objectStoreName, objectStoreIndexName], callback)
95 }; 95 };
96 96
97 InspectorTest.addIDBValue = function(frameId, databaseName, objectStoreName, val ue, key, callback) 97 InspectorTest.addIDBValue = function(frameId, databaseName, objectStoreName, val ue, key, callback)
98 { 98 {
99 InspectorTest.evaluateWithCallback(frameId, "addIDBValue", [databaseName, ob jectStoreName, value, key], callback) 99 InspectorTest.evaluateWithCallback(frameId, "addIDBValue", [databaseName, ob jectStoreName, value, key], callback)
100 }; 100 };
101
102 InspectorTest.createIndexedDBModel = function()
103 {
104 var indexedDBModel = new WebInspector.IndexedDBModel(WebInspector.targetMana ger.mainTarget(), InspectorTest.securityOriginManager);
105 indexedDBModel.enable();
106 return indexedDBModel;
107 };
101 }; 108 };
102 109
103 function dispatchCallback(callbackId) 110 function dispatchCallback(callbackId)
104 { 111 {
105 console.log(callbackId); 112 console.log(callbackId);
106 } 113 }
107 114
108 function onIndexedDBError(e) 115 function onIndexedDBError(e)
109 { 116 {
110 console.error("IndexedDB error: " + e); 117 console.error("IndexedDB error: " + e);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 { 253 {
247 var request; 254 var request;
248 if (key) 255 if (key)
249 request = objectStore.add(value, key); 256 request = objectStore.add(value, key);
250 else 257 else
251 request = objectStore.add(value); 258 request = objectStore.add(value);
252 request.onerror = onIndexedDBError; 259 request.onerror = onIndexedDBError;
253 request.onsuccess = commitCallback; 260 request.onsuccess = commitCallback;
254 } 261 }
255 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698