| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Test converted from WebKit: | 2 Test converted from WebKit: |
| 3 http://trac.webkit.org/browser/trunk/LayoutTests/storage/indexeddb/cursor-overlo
ads.html | 3 http://trac.webkit.org/browser/trunk/LayoutTests/storage/indexeddb/cursor-overlo
ads.html |
| 4 --> | 4 --> |
| 5 | 5 |
| 6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
| 7 <!-- Submitted from TestTWF Paris --> | 7 <!-- Submitted from TestTWF Paris --> |
| 8 <meta charset=utf-8> | 8 <meta charset=utf-8> |
| 9 <title>Validate the overloads of IDBObjectStore.openCursor(), IDBIndex.openCurso
r() and IDBIndex.openKeyCursor()</title> | 9 <title>Validate the overloads of IDBObjectStore.openCursor(), IDBIndex.openCurso
r() and IDBIndex.openKeyCursor()</title> |
| 10 <link rel=author href="mailto:romain.huet@gmail.com" title="Romain Huet"> | 10 <link rel=author href="mailto:romain.huet@gmail.com" title="Romain Huet"> |
| 11 | 11 |
| 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 | 17 |
| 18 var db, trans, store, index; | 18 var db, trans, store, index; |
| 19 var t = async_test(); | 19 var t = async_test(); |
| 20 | 20 |
| 21 var request = createdb(t); | 21 var request = createdb(t); |
| 22 request.onupgradeneeded = function(e) { | 22 request.onupgradeneeded = function(e) { |
| 23 db = request.result; | 23 db = request.result; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 request = eval(statement); | 79 request = eval(statement); |
| 80 request.onsuccess = function(event) { | 80 request.onsuccess = function(event) { |
| 81 assert_not_equals(event.target.result, null, "Check the result is no
t null") | 81 assert_not_equals(event.target.result, null, "Check the result is no
t null") |
| 82 assert_equals(event.target.result.direction, direction, "Check the r
esult direction"); | 82 assert_equals(event.target.result.direction, direction, "Check the r
esult direction"); |
| 83 }; | 83 }; |
| 84 } | 84 } |
| 85 | 85 |
| 86 </script> | 86 </script> |
| 87 | 87 |
| 88 <div id=log></div> | 88 <div id=log></div> |
| OLD | NEW |