| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="../../fast/js/resources/js-test-pre.js"></script> |
| <script src="resources/shared.js"></script> |
| </head> |
| <body> |
| <script> |
| |
| description("Test IndexedDB createObjectStore name argument is required"); |
| |
| function test() |
| { |
| removeVendorPrefixes(); |
| |
| name = self.location.pathname; |
| description = "My Test Database"; |
| request = evalAndLog("indexedDB.open(name, description)"); |
| request.onsuccess = openSuccess; |
| request.onerror = unexpectedErrorCallback; |
| } |
| |
| function openSuccess() |
| { |
| db = evalAndLog("db = event.target.result"); |
| |
| request = evalAndLog("request = db.setVersion('1')"); |
| request.onsuccess = createAndPopulateObjectStore; |
| request.onerror = unexpectedErrorCallback; |
| } |
| |
| function createAndPopulateObjectStore() |
| { |
| deleteAllObjectStores(db); |
| |
| shouldThrow("db.createObjectStore();"); |
| finishJSTest(); |
| } |
| |
| |
| test(); |
| |
| </script> |
| <script src="../../fast/js/resources/js-test-post.js"></script> |
| </body> |
| </html> |