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("Test IndexedDB transaction basics."); | 6 description("Test IndexedDB transaction basics."); |
7 | 7 |
8 indexedDBTest(prepareDatabase, testSetVersionAbort1); | 8 indexedDBTest(prepareDatabase, testSetVersionAbort1); |
9 function prepareDatabase() | 9 function prepareDatabase() |
10 { | 10 { |
11 db = event.target.result; | 11 db = event.target.result; |
12 } | 12 } |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 trans.oncomplete = verifyDegenerateNames; | 289 trans.oncomplete = verifyDegenerateNames; |
290 }; | 290 }; |
291 function verifyDegenerateNames() { | 291 function verifyDegenerateNames() { |
292 shouldNotThrow("transaction = db.transaction(null)"); | 292 shouldNotThrow("transaction = db.transaction(null)"); |
293 shouldBeNonNull("transaction.objectStore('null')"); | 293 shouldBeNonNull("transaction.objectStore('null')"); |
294 shouldNotThrow("transaction = db.transaction(undefined)"); | 294 shouldNotThrow("transaction = db.transaction(undefined)"); |
295 shouldBeNonNull("transaction.objectStore('undefined')"); | 295 shouldBeNonNull("transaction.objectStore('undefined')"); |
296 finishJSTest(); | 296 finishJSTest(); |
297 } | 297 } |
298 } | 298 } |
OLD | NEW |