2011-01-10 16:09:56 -08:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Indexed Database Test</title>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7">
|
|
|
|
function testSteps()
|
|
|
|
{
|
2012-06-29 09:48:35 -07:00
|
|
|
let request = indexedDB.open("browser_forgetThisSite.js", 11);
|
2011-01-10 16:09:56 -08:00
|
|
|
request.onerror = grabEventAndContinueHandler;
|
2011-10-20 09:10:56 -07:00
|
|
|
request.onupgradeneeded = grabEventAndContinueHandler;
|
2011-01-10 16:09:56 -08:00
|
|
|
let event = yield;
|
|
|
|
|
|
|
|
if (event.type == "error") {
|
2012-04-11 14:55:22 -07:00
|
|
|
testException = event.target.error.name;
|
2011-01-10 16:09:56 -08:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
let db = event.target.result;
|
|
|
|
|
2011-10-20 09:10:56 -07:00
|
|
|
testResult = db.version;
|
2011-01-10 16:09:56 -08:00
|
|
|
|
|
|
|
event.target.transaction.oncomplete = finishTest;
|
|
|
|
yield;
|
|
|
|
}
|
|
|
|
|
|
|
|
yield;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();" onunload="finishTestNow();"></body>
|
|
|
|
|
|
|
|
</html>
|