blob: 7146e35ad11c48f87ed85e62685844f418af2391 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script src="resources/shared.js"></script>
</head>
<body>
<script>
description("No crashes when opening and reloading with bad version numbers");
function test()
{
removeVendorPrefixes();
evalAndLog("dbname = String(window.location)");
try { indexedDB.open(dbname, -1); } catch (e) { }
indexedDB.open(dbname, 2);
try { indexedDB.open(dbname, -1); } catch (e) { }
setTimeout(function() {
if (!window.location.search) {
window.location = window.location + "?2";
} else {
finishJSTest();
}
}, 500);
}
test();
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>