2010-09-09 15:15:44 -07: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()
|
|
|
|
{
|
|
|
|
const name = window.location.pathname;
|
|
|
|
|
2012-07-12 22:37:28 -07:00
|
|
|
let request = indexedDB.open(name, 1);
|
2010-09-09 15:15:44 -07:00
|
|
|
request.onerror = grabEventAndContinueHandler;
|
|
|
|
request.onsuccess = grabEventAndContinueHandler;
|
|
|
|
let event = yield;
|
|
|
|
|
2011-01-06 22:21:36 -08:00
|
|
|
if (event.type == "success") {
|
|
|
|
testResult = event.target.result;
|
2010-09-09 15:15:44 -07:00
|
|
|
}
|
|
|
|
else {
|
2012-04-11 14:55:22 -07:00
|
|
|
testException = event.target.error.name;
|
2010-09-09 15:15:44 -07:00
|
|
|
}
|
|
|
|
|
2012-06-29 09:48:34 -07:00
|
|
|
event.preventDefault();
|
|
|
|
|
2010-09-09 15:15:44 -07:00
|
|
|
finishTest()
|
|
|
|
yield;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();" onunload="finishTestNow();"></body>
|
|
|
|
|
|
|
|
</html>
|