| original test: http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_create_objectStore.html |
| license of original test: |
| " Any copyright is dedicated to the Public Domain. |
| http://creativecommons.org/publicdomain/zero/1.0/ " |
| <script src="../../../fast/js/resources/js-test-pre.js"></script> |
| <script src="../resources/shared.js"></script> |
| description("Test IndexedDB's creating object store with null name"); |
| name = self.location.pathname; |
| description = "My Test Database"; |
| request = evalAndLog("indexedDB.open(name, description)"); |
| request.onsuccess = openSuccess; |
| request.onerror = unexpectedErrorCallback; |
| db = evalAndLog("db = event.target.result"); |
| request = evalAndLog("request = db.setVersion('1')"); |
| request.onsuccess = cleanDatabase; |
| request.onerror = unexpectedErrorCallback; |
| deleteAllObjectStores(db); |
| objectStore = evalAndLog("objectStore = db.createObjectStore(null);"); |
| shouldBe("objectStore.name", "'null'"); |
| <script src="../../../fast/js/resources/js-test-post.js"></script> |