2 <script src=
"../../resources/js-test.js"></script>
3 <script src=
"resources/shared.js"></script>
6 description("Regression test for http://webkit.org/b/102547");
8 indexedDBTest(prepareDatabase
, finishJSTest
);
10 function prepareDatabase() {
11 evalAndLog("db = event.target.result");
12 evalAndLog("transaction = event.target.transaction");
13 evalAndLog("store = db.createObjectStore('store')");
15 evalAndExpectException("transaction.objectStore('no-such-store')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
17 evalAndExpectException("store.index('no-such-index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");