| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!doctype html> |
| 2 <title>IndexedDB: IDBCursor continuePrimaryKey() method</title> | 2 <meta charset="utf-8" /> |
| 3 <script src="../../resources/testharness.js"></script> | 3 <title>IndexedDB: IDBCursor continuePrimaryKey() exception throwing</title> |
| 4 <script src="../../resources/testharnessreport.js"></script> | 4 <link rel="help" |
| 5 href="https://w3c.github.io/IndexedDB/#dom-idbcursor-continueprimarykey" /
> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 5 <script> | 8 <script> |
| 6 | 9 |
| 7 async_test(function(t) { | 10 async_test(function(t) { |
| 8 var dbname = document.location + '-' + t.name; | 11 var dbname = document.location + '-' + t.name; |
| 9 var del = indexedDB.deleteDatabase(dbname); | 12 var del = indexedDB.deleteDatabase(dbname); |
| 10 del.onerror = t.unreached_func('deleteDatabase should succeed'); | 13 del.onerror = t.unreached_func('deleteDatabase should succeed'); |
| 11 var open = indexedDB.open(dbname); | 14 var open = indexedDB.open(dbname); |
| 12 open.onerror = t.unreached_func('open should succeed'); | 15 open.onerror = t.unreached_func('open should succeed'); |
| 13 | 16 |
| 14 open.onupgradeneeded = t.step_func(function() { | 17 open.onupgradeneeded = t.step_func(function() { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 open.onsuccess = t.step_func(function() { | 90 open.onsuccess = t.step_func(function() { |
| 88 var db = open.result; | 91 var db = open.result; |
| 89 db.close(); | 92 db.close(); |
| 90 t.done(); | 93 t.done(); |
| 91 }); | 94 }); |
| 92 | 95 |
| 93 }, 'IDBCursor continuePrimaryKey() on "' + testcase.direction + '" cursor'); | 96 }, 'IDBCursor continuePrimaryKey() on "' + testcase.direction + '" cursor'); |
| 94 }); | 97 }); |
| 95 | 98 |
| 96 </script> | 99 </script> |
| OLD | NEW |