OLD | NEW |
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 Loading... |
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(); |
OLD | NEW |