| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IDBCursor direction - object store with keyrange</title> | 2 <title>IDBCursor direction - object store with keyrange</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 direction is "prev", let found record be the last rec
ord in records which satisfy all of the following requirements'> | 6 <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 range is defined, the record's key is in range."> | 7 <link rel=assert title="If range is defined, the record's key is in range."> |
| 8 <script src="../../../resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="../../../resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="support.js"></script> | 10 <script src="support.js"></script> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 var records = [ 1337, "Alice", "Bob", "Greg", "Åke", ["Anne"] ]; | 13 var records = [ 1337, "Alice", "Bob", "Greg", "Åke", ["Anne"] ]; |
| 14 var directions = ["next", "prev", "nextunique", "prevunique"]; | 14 var directions = ["next", "prev", "nextunique", "prevunique"]; |
| 15 var tests = {}; | 15 var tests = {}; |
| 16 | 16 |
| 17 directions.forEach(function(dir) { | 17 directions.forEach(function(dir) { |
| 18 tests[dir] = async_test(document.title + ' - ' + dir); | 18 tests[dir] = async_test(document.title + ' - ' + dir); |
| 19 }); | 19 }); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 directions.forEach(function(dir) { | 68 directions.forEach(function(dir) { |
| 69 tests[dir].step(function() { assert_unreached(name); }); | 69 tests[dir].step(function() { assert_unreached(name); }); |
| 70 }); | 70 }); |
| 71 }; | 71 }; |
| 72 } | 72 } |
| 73 open_rq.onblocked = fail_helper('open_rq.onblocked'); | 73 open_rq.onblocked = fail_helper('open_rq.onblocked'); |
| 74 open_rq.onerror = fail_helper('open_rq.onerror'); | 74 open_rq.onerror = fail_helper('open_rq.onerror'); |
| 75 </script> | 75 </script> |
| 76 | 76 |
| 77 <div id=log> </div> | 77 <div id=log> </div> |
| OLD | NEW |