blob: 7fd4af12fb85d884f22cedfc650c20bc6ed065c8 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script src="resources/shared.js"></script>
<script>
description("Regression test for http://webkit.org/b/102547");
indexedDBTest(prepareDatabase, finishJSTest);
function prepareDatabase() {
evalAndLog("db = event.target.result");
evalAndLog("transaction = event.target.transaction");
evalAndLog("store = db.createObjectStore('store')");
debug("");
evalAndExpectException("transaction.objectStore('no-such-store')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
debug("");
evalAndExpectException("store.index('no-such-index')", "DOMException.NOT_FOUND_ERR", "'NotFoundError'");
}
</script>