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