OLD | NEW |
1 if (this.importScripts) { | 1 if (this.importScripts) { |
2 importScripts('../../../fast/js/resources/js-test-pre.js'); | 2 importScripts('../../../resources/js-test.js'); |
3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
4 } | 4 } |
5 | 5 |
6 description("Verify that a transaction with an error aborts unless preventDefaul
t() is called."); | 6 description("Verify that a transaction with an error aborts unless preventDefaul
t() is called."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, addData); | 8 indexedDBTest(prepareDatabase, addData); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 debug("setVersionSuccess():"); | 12 debug("setVersionSuccess():"); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')"); | 71 request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')"); |
72 request.onsuccess = unexpectedSuccessCallback; | 72 request.onsuccess = unexpectedSuccessCallback; |
73 debug("Omitting an onerror handler"); | 73 debug("Omitting an onerror handler"); |
74 } | 74 } |
75 | 75 |
76 function transactionAborted2() | 76 function transactionAborted2() |
77 { | 77 { |
78 testPassed("Transaction aborted"); | 78 testPassed("Transaction aborted"); |
79 finishJSTest(); | 79 finishJSTest(); |
80 } | 80 } |
OLD | NEW |