| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IDBCursor direction - index</title> | 2 <title>IDBCursor direction - index</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 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
cursor-iteration-operation"> | 4 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
cursor-iteration-operation"> |
| 5 <link rel=assert title='If direction is "next", let found record be the first re
cord in records which satisfy all of the following requirements'> | 5 <link rel=assert title='If direction is "next", let found record be the first re
cord in records which satisfy all of the following requirements'> |
| 6 <link rel=assert title="If position is defined, and source is an object store, t
he record's key is greater than position."> | 6 <link rel=assert title="If position is defined, and source is an object store, t
he record's key is greater than position."> |
| 7 <link rel=assert title='If direction is "prev", let found record be the last rec
ord in records which satisfy all of the following requirements'> | 7 <link rel=assert title='If direction is "prev", let found record be the last rec
ord in records which satisfy all of the following requirements'> |
| 8 <link rel=assert title="If position is defined, and source is an object store, t
he record's key is less than position."> | 8 <link rel=assert title="If position is defined, and source is an object store, t
he record's key is less than position."> |
| 9 <link rel=assert title="Set cursor's position to found record's key. If source i
s an index, set cursor's object store position to found record's value."> | 9 <link rel=assert title="Set cursor's position to found record's key. If source i
s an index, set cursor's object store position to found record's value."> |
| 10 <link rel=assert title="Set cursor's key to found record's key."> | 10 <link rel=assert title="Set cursor's key to found record's key."> |
| 11 <script src="../../../resources/testharness.js"></script> | 11 <script src="/resources/testharness.js"></script> |
| 12 <script src="../../../resources/testharnessreport.js"></script> | 12 <script src="/resources/testharnessreport.js"></script> |
| 13 <script src="support.js"></script> | 13 <script src="support.js"></script> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 var records = [ "Alice", "Bob", "Bob", "Greg" ]; | 16 var records = [ "Alice", "Bob", "Bob", "Greg" ]; |
| 17 var directions = ["next", "prev", "nextunique", "prevunique"]; | 17 var directions = ["next", "prev", "nextunique", "prevunique"]; |
| 18 var tests = {}; | 18 var tests = {}; |
| 19 | 19 |
| 20 directions.forEach(function(dir) { | 20 directions.forEach(function(dir) { |
| 21 tests[dir] = async_test(document.title + ' - ' + dir); | 21 tests[dir] = async_test(document.title + ' - ' + dir); |
| 22 }); | 22 }); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 directions.forEach(function(dir) { | 72 directions.forEach(function(dir) { |
| 73 tests[dir].step(function() { assert_unreached(name); }); | 73 tests[dir].step(function() { assert_unreached(name); }); |
| 74 }); | 74 }); |
| 75 }; | 75 }; |
| 76 } | 76 } |
| 77 open_rq.onblocked = fail_helper('open_rq.onblocked'); | 77 open_rq.onblocked = fail_helper('open_rq.onblocked'); |
| 78 open_rq.onerror = fail_helper('open_rq.onerror'); | 78 open_rq.onerror = fail_helper('open_rq.onerror'); |
| 79 </script> | 79 </script> |
| 80 | 80 |
| 81 <div id=log> </div> | 81 <div id=log> </div> |
| OLD | NEW |