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

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

Issue 415753002: Deprecate the webkit-prefixed standard IndexedDB entry points (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 var initialize_IndexedDBTest = function() { 1 var initialize_IndexedDBTest = function() {
2 2
3 InspectorTest.dumpIndexedDBTree = function() 3 InspectorTest.dumpIndexedDBTree = function()
4 { 4 {
5 InspectorTest.addResult("Dumping IndexedDB tree:"); 5 InspectorTest.addResult("Dumping IndexedDB tree:");
6 var indexedDBTreeElement = WebInspector.panels.resources.indexedDBListTreeEl ement; 6 var indexedDBTreeElement = WebInspector.panels.resources.indexedDBListTreeEl ement;
7 if (!indexedDBTreeElement.children.length) { 7 if (!indexedDBTreeElement.children.length) {
8 InspectorTest.addResult(" (empty)"); 8 InspectorTest.addResult(" (empty)");
9 return; 9 return;
10 } 10 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 InspectorTest.evaluateWithCallback(frameId, "deleteObjectStoreIndex", [datab aseName, objectStoreName, objectStoreIndexName], callback) 93 InspectorTest.evaluateWithCallback(frameId, "deleteObjectStoreIndex", [datab aseName, objectStoreName, objectStoreIndexName], callback)
94 }; 94 };
95 95
96 InspectorTest.addIDBValue = function(frameId, databaseName, objectStoreName, val ue, key, callback) 96 InspectorTest.addIDBValue = function(frameId, databaseName, objectStoreName, val ue, key, callback)
97 { 97 {
98 InspectorTest.evaluateWithCallback(frameId, "addIDBValue", [databaseName, ob jectStoreName, value, key], callback) 98 InspectorTest.evaluateWithCallback(frameId, "addIDBValue", [databaseName, ob jectStoreName, value, key], callback)
99 }; 99 };
100 100
101 }; 101 };
102 102
103 var indexedDB = window.indexeddb || window.webkitIndexedDB;
eseidel 2014/07/23 20:18:31 I might have left these two as blank lines to avoi
104 window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;
105
106 function dispatchCallback(callbackId) 103 function dispatchCallback(callbackId)
107 { 104 {
108 console.log(callbackId); 105 console.log(callbackId);
109 } 106 }
110 107
111 function onIndexedDBError(e) 108 function onIndexedDBError(e)
112 { 109 {
113 console.error("IndexedDB error: " + e); 110 console.error("IndexedDB error: " + e);
114 } 111 }
115 112
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 { 246 {
250 var request; 247 var request;
251 if (key) 248 if (key)
252 request = objectStore.add(value, key); 249 request = objectStore.add(value, key);
253 else 250 else
254 request = objectStore.add(value); 251 request = objectStore.add(value);
255 request.onerror = onIndexedDBError; 252 request.onerror = onIndexedDBError;
256 request.onsuccess = commitCallback; 253 request.onsuccess = commitCallback;
257 } 254 }
258 } 255 }
259
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698