| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('shared.js'); | 3 importScripts('shared.js'); |
| 4 } | 4 } |
| 5 | 5 |
| 6 description("Test the basics of IndexedDB's IDBFactory."); | 6 description("Test the basics of IndexedDB's IDBFactory."); |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 removeVendorPrefixes(); | |
| 11 | |
| 12 shouldBeEqualToString("typeof indexedDB.open", "function"); | 10 shouldBeEqualToString("typeof indexedDB.open", "function"); |
| 13 shouldBeEqualToString("typeof indexedDB.cmp", "function"); | 11 shouldBeEqualToString("typeof indexedDB.cmp", "function"); |
| 14 shouldBeEqualToString("typeof indexedDB.deleteDatabase", "function"); | 12 shouldBeEqualToString("typeof indexedDB.deleteDatabase", "function"); |
| 15 | 13 |
| 16 // Non-standard, must be prefixed | 14 // Non-standard, must be prefixed |
| 17 shouldBeEqualToString("typeof indexedDB.webkitGetDatabaseNames", "function")
; | 15 shouldBeEqualToString("typeof indexedDB.webkitGetDatabaseNames", "function")
; |
| 18 shouldBeEqualToString("typeof indexedDB.getDatabaseNames", "undefined"); | 16 shouldBeEqualToString("typeof indexedDB.getDatabaseNames", "undefined"); |
| 19 | 17 |
| 20 name = 'storage/indexeddb/factory-basics'; | 18 name = 'storage/indexeddb/factory-basics'; |
| 21 | 19 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 request.onsuccess = deleteDatabaseSuccess2; | 79 request.onsuccess = deleteDatabaseSuccess2; |
| 82 request.onerror = unexpectedErrorCallback; | 80 request.onerror = unexpectedErrorCallback; |
| 83 } | 81 } |
| 84 | 82 |
| 85 function deleteDatabaseSuccess2() | 83 function deleteDatabaseSuccess2() |
| 86 { | 84 { |
| 87 finishJSTest(); | 85 finishJSTest(); |
| 88 } | 86 } |
| 89 | 87 |
| 90 test(); | 88 test(); |
| OLD | NEW |