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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/resources/object-cursors.js

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 // original test: 1 // original test:
2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_objectCursor s.html 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_objectCursor s.html
3 // license of original test: 3 // license of original test:
4 // " Any copyright is dedicated to the Public Domain. 4 // " Any copyright is dedicated to the Public Domain.
5 // http://creativecommons.org/publicdomain/zero/1.0/ " 5 // http://creativecommons.org/publicdomain/zero/1.0/ "
6 6
7 if (this.importScripts) { 7 if (this.importScripts) {
8 importScripts('../../../../fast/js/resources/js-test-pre.js'); 8 importScripts('../../../../resources/js-test.js');
9 importScripts('../../resources/shared.js'); 9 importScripts('../../resources/shared.js');
10 } 10 }
11 11
12 description("Test IndexedDB's index cursors"); 12 description("Test IndexedDB's index cursors");
13 13
14 indexedDBTest(prepareDatabase); 14 indexedDBTest(prepareDatabase);
15 function prepareDatabase() 15 function prepareDatabase()
16 { 16 {
17 db = event.target.result; 17 db = event.target.result;
18 event.target.transaction.onabort = unexpectedAbortCallback; 18 event.target.transaction.onabort = unexpectedAbortCallback;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 autoIncrement = evalAndLog("autoIncrement = true;"); 57 autoIncrement = evalAndLog("autoIncrement = true;");
58 objectStore = evalAndLog("objectStore = db.createObjectStore('b', { keyPath: 'id', autoIncrement: autoIncrement });"); 58 objectStore = evalAndLog("objectStore = db.createObjectStore('b', { keyPath: 'id', autoIncrement: autoIncrement });");
59 for (j in indexes) { 59 for (j in indexes) {
60 evalAndLog("objectStore.createIndex(indexes[j].name, 'name', indexes[j]. options);"); 60 evalAndLog("objectStore.createIndex(indexes[j].name, 'name', indexes[j]. options);");
61 } 61 }
62 data = evalAndLog("data = { name: 'Ben' };"); 62 data = evalAndLog("data = { name: 'Ben' };");
63 request = evalAndLog("request = objectStore.add(data);"); 63 request = evalAndLog("request = objectStore.add(data);");
64 request.onsuccess = postAdd; 64 request.onsuccess = postAdd;
65 request.onerror = unexpectedErrorCallback; 65 request.onerror = unexpectedErrorCallback;
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698