| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 3 <script src="resources/shared.js"></script> | 3 <script src="resources/shared.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 description("Verify that that cursors accessed after being closed are well behav
ed"); | 6 description("Verify that that cursors accessed after being closed are well behav
ed"); |
| 7 | 7 |
| 8 indexedDBTest(prepareDatabase, onOpen); | 8 indexedDBTest(prepareDatabase, onOpen); |
| 9 function prepareDatabase(evt) | 9 function prepareDatabase(evt) |
| 10 { | 10 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 tx.oncomplete = function transactionComplete(evt) { | 29 tx.oncomplete = function transactionComplete(evt) { |
| 30 preamble(evt); | 30 preamble(evt); |
| 31 shouldBeEqualToString("JSON.stringify(cursor.key)", '["key"]'); | 31 shouldBeEqualToString("JSON.stringify(cursor.key)", '["key"]'); |
| 32 shouldBeEqualToString("JSON.stringify(cursor.primaryKey)", '["key"]'); | 32 shouldBeEqualToString("JSON.stringify(cursor.primaryKey)", '["key"]'); |
| 33 shouldBeEqualToString("JSON.stringify(cursor.value)", '{"value":"value"}
'); | 33 shouldBeEqualToString("JSON.stringify(cursor.value)", '{"value":"value"}
'); |
| 34 finishJSTest(); | 34 finishJSTest(); |
| 35 }; | 35 }; |
| 36 } | 36 } |
| 37 | 37 |
| 38 </script> | 38 </script> |
| 39 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| OLD | NEW |