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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/objectstore-clear.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 if (this.importScripts) { 1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js'); 2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js'); 3 importScripts('shared.js');
4 } 4 }
5 5
6 description("Test IndexedDB's webkitIDBObjectStore.clear()."); 6 description("Test IndexedDB's IDBObjectStore.clear().");
7 7
8 indexedDBTest(prepareDatabase, setVersionComplete); 8 indexedDBTest(prepareDatabase, setVersionComplete);
9 function prepareDatabase() 9 function prepareDatabase()
10 { 10 {
11 db = event.target.result; 11 db = event.target.result;
12 event.target.transaction.onabort = unexpectedAbortCallback; 12 event.target.transaction.onabort = unexpectedAbortCallback;
13 13
14 store = evalAndLog("store = db.createObjectStore('storeName', null)"); 14 store = evalAndLog("store = db.createObjectStore('storeName', null)");
15 15
16 self.index = evalAndLog("store.createIndex('indexName', '')"); 16 self.index = evalAndLog("store.createIndex('indexName', '')");
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 request.onsuccess = getSuccess; 72 request.onsuccess = getSuccess;
73 request.onerror = unexpectedErrorCallback; 73 request.onerror = unexpectedErrorCallback;
74 } 74 }
75 75
76 function getSuccess() 76 function getSuccess()
77 { 77 {
78 shouldBeEqualToString("event.target.result", "value"); 78 shouldBeEqualToString("event.target.result", "value");
79 79
80 finishJSTest(); 80 finishJSTest();
81 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698