| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IDBCursor direction - index with keyrange</title> | 2 <title>IDBCursor direction - index 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 position is defined, and source is an index, the reco
rd's key is equal to position and the record's value is greater than object stor
e position or the record's key is greater than position."> | 6 <link rel=assert title="If position is defined, and source is an index, the reco
rd's key is equal to position and the record's value is greater than object stor
e position or the 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 index, the reco
rd's key is equal to position and the record's value is less than object store p
osition or the record's key is less than position."> | 8 <link rel=assert title="If position is defined, and source is an index, the reco
rd's key is equal to position and the record's value is less than object store p
osition or the record's key is less than position."> |
| 9 <link rel=assert title="If range is defined, the record's key is in range."> | 9 <link rel=assert title="If range is defined, the record's key is in range."> |
| 10 <link rel=assert title="If temp record is defined, let found record be the first
record in records whose key is equal to temp record's key."> | 10 <link rel=assert title="If temp record is defined, let found record be the first
record in records whose key is equal to temp record's key."> |
| 11 <link rel=assert title="records is always sorted in ascending key order. In the
case of source being an index, records is secondarily sorted in ascending value
order."> | 11 <link rel=assert title="records is always sorted in ascending key order. In the
case of source being an index, records is secondarily sorted in ascending value
order."> |
| 12 <script src="../../../resources/testharness.js"></script> | 12 <script src="/resources/testharness.js"></script> |
| 13 <script src="../../../resources/testharnessreport.js"></script> | 13 <script src="/resources/testharnessreport.js"></script> |
| 14 <script src="support.js"></script> | 14 <script src="support.js"></script> |
| 15 | 15 |
| 16 <script> | 16 <script> |
| 17 var records = [ 1337, "Alice", "Bob", "Bob", "Greg", "Åke", ["Anne"] ]; | 17 var records = [ 1337, "Alice", "Bob", "Bob", "Greg", "Åke", ["Anne"] ]; |
| 18 var directions = ["next", "prev", "nextunique", "prevunique"]; | 18 var directions = ["next", "prev", "nextunique", "prevunique"]; |
| 19 var tests = {}; | 19 var tests = {}; |
| 20 | 20 |
| 21 directions.forEach(function(dir) { | 21 directions.forEach(function(dir) { |
| 22 tests[dir] = async_test(document.title + ' - ' + dir); | 22 tests[dir] = async_test(document.title + ' - ' + dir); |
| 23 }); | 23 }); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 directions.forEach(function(dir) { | 73 directions.forEach(function(dir) { |
| 74 tests[dir].step(function() { assert_unreached(name); }); | 74 tests[dir].step(function() { assert_unreached(name); }); |
| 75 }); | 75 }); |
| 76 }; | 76 }; |
| 77 } | 77 } |
| 78 open_rq.onblocked = fail_helper('open_rq.onblocked'); | 78 open_rq.onblocked = fail_helper('open_rq.onblocked'); |
| 79 open_rq.onerror = fail_helper('open_rq.onerror'); | 79 open_rq.onerror = fail_helper('open_rq.onerror'); |
| 80 </script> | 80 </script> |
| 81 | 81 |
| 82 <div id=log> </div> | 82 <div id=log> </div> |
| OLD | NEW |