OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <script src="resources/shared.js"></script> | 3 <script src="resources/shared.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 description("Ensure IndexedDB's IDBObjectStore.deleteIndex() works if IDBIndex o
bject has not been fetched - regression test for bug 110792."); | 6 description("Ensure IndexedDB's IDBObjectStore.deleteIndex() works if IDBIndex o
bject has not been fetched - regression test for bug 110792."); |
7 | 7 |
8 indexedDBTest(onFirstUpgradeNeeded, closeAndReOpen, {version: 1}); | 8 indexedDBTest(onFirstUpgradeNeeded, closeAndReOpen, {version: 1}); |
9 | 9 |
10 function onFirstUpgradeNeeded(evt) | 10 function onFirstUpgradeNeeded(evt) |
11 { | 11 { |
12 preamble(evt); | 12 preamble(evt); |
(...skipping 19 matching lines...) Expand all Loading... |
32 preamble(evt); | 32 preamble(evt); |
33 evalAndLog("db = event.target.result"); | 33 evalAndLog("db = event.target.result"); |
34 evalAndLog("store = event.target.transaction.objectStore('store')"); | 34 evalAndLog("store = event.target.transaction.objectStore('store')"); |
35 // Do NOT add a call to store.index('index') here (e.g. to assert it exists) | 35 // Do NOT add a call to store.index('index') here (e.g. to assert it exists) |
36 // or the bug disappears. | 36 // or the bug disappears. |
37 evalAndLog("store.deleteIndex('index')"); | 37 evalAndLog("store.deleteIndex('index')"); |
38 evalAndExpectException("store.index('index')", "DOMException.NOT_FOUND_ERR",
"'NotFoundError'"); | 38 evalAndExpectException("store.index('index')", "DOMException.NOT_FOUND_ERR",
"'NotFoundError'"); |
39 } | 39 } |
40 | 40 |
41 </script> | 41 </script> |
OLD | NEW |