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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/resources/generator_test_adapter.js

Issue 1316203002: Import Mozilla's IDBObjectStore.openKeyCursor() test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 'use strict'; 1 'use strict';
2 2
3 // Adapter for Mozilla's getAll tests to Blink's js-test. 3 // Adapter for Mozilla's getAll tests to Blink's js-test.
4 4
5 var jsTestIsAsync = true; 5 var jsTestIsAsync = true;
6 6
7 // Moz tests are still prefixed 7 // Moz tests are still prefixed
8 IDBObjectStore.prototype.mozGetAll = IDBObjectStore.prototype.getAll; 8 IDBObjectStore.prototype.mozGetAll = IDBObjectStore.prototype.getAll;
9 IDBObjectStore.prototype.mozGetAllKeys = IDBObjectStore.prototype.getAllKeys; 9 IDBObjectStore.prototype.mozGetAllKeys = IDBObjectStore.prototype.getAllKeys;
10 IDBIndex.prototype.mozGetAll = IDBIndex.prototype.getAll; 10 IDBIndex.prototype.mozGetAll = IDBIndex.prototype.getAll;
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 function is(a, b, message) { 25 function is(a, b, message) {
26 ok(Object.is(a, b), message); 26 ok(Object.is(a, b), message);
27 } 27 }
28 function grabEventAndContinueHandler(e) { 28 function grabEventAndContinueHandler(e) {
29 testGenerator.next(e); 29 testGenerator.next(e);
30 } 30 }
31 function executeSoon(f) { 31 function executeSoon(f) {
32 setTimeout(f, 0); 32 setTimeout(f, 0);
33 } 33 }
34 function continueToNextStepSync() {
35 testGenerator.next();
36 }
34 function finishTest() { 37 function finishTest() {
35 finishJSTest(); 38 finishJSTest();
36 } 39 }
37 function unexpectedSuccessHandler(e) { 40 function unexpectedSuccessHandler(e) {
38 ok(false, "Unexpected success"); 41 ok(false, "Unexpected success");
39 } 42 }
40 function info(message) { 43 function info(message) {
41 debug(message); 44 debug(message);
42 } 45 }
43 testGenerator.next(); 46 testGenerator.next();
OLDNEW
« no previous file with comments | « LayoutTests/SlowTests ('k') | LayoutTests/storage/indexeddb/mozilla/resources/getAll_test_adapter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698