OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>IDBCursor is reused</title> | 2 <title>IDBCursor is reused</title> |
3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> | 3 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> |
4 <meta rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
widl-IDBCursor-continue-void-any-key"> | 4 <meta rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
widl-IDBCursor-continue-void-any-key"> |
5 <meta rel=assert title="Otherwise this method runs the steps for asynchronously
executing a request. However, the steps are slightly modified such that instead
of creating a new IDBRequest, it reuses the request originally created when this
cursor was created. The done flag on the request is set to false before the req
uest is returned. The steps are run with the cursor's source as source and the s
teps for iterating a cursor as operation, using this cursor as cursor and the ke
y parameter as key."> | 5 <meta rel=assert title="Otherwise this method runs the steps for asynchronously
executing a request. However, the steps are slightly modified such that instead
of creating a new IDBRequest, it reuses the request originally created when this
cursor was created. The done flag on the request is set to false before the req
uest is returned. The steps are run with the cursor's source as source and the s
teps for iterating a cursor as operation, using this cursor as cursor and the ke
y parameter as key."> |
6 <script src="../../../resources/testharness.js"></script> | 6 <script src="../../../resources/testharness.js"></script> |
7 <script src="../../../resources/testharnessreport.js"></script> | 7 <script src="../../../resources/testharnessreport.js"></script> |
8 <script src="support.js"></script> | 8 <script src="support.js"></script> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 assert_equals(count, 3, "cursor callback runs") | 60 assert_equals(count, 3, "cursor callback runs") |
61 assert_equals(rq.custom_request_value, 2, "variable placed on ol
d IDBRequest") | 61 assert_equals(rq.custom_request_value, 2, "variable placed on ol
d IDBRequest") |
62 assert_equals(cursor.custom_cursor_value, 1, "custom cursor valu
e (transaction.complete)") | 62 assert_equals(cursor.custom_cursor_value, 1, "custom cursor valu
e (transaction.complete)") |
63 this.done() | 63 this.done() |
64 }) | 64 }) |
65 } | 65 } |
66 | 66 |
67 </script> | 67 </script> |
68 | 68 |
69 <div id="log"></div> | 69 <div id="log"></div> |
OLD | NEW |