2010-09-10 02:15:44 +04: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;
|
|
|
|
const description = "My Test Database";
|
|
|
|
|
2011-10-20 20:10:56 +04:00
|
|
|
let request = mozIndexedDB.open(name, 1, description);
|
2010-09-10 02:15:44 +04:00
|
|
|
request.onerror = grabEventAndContinueHandler;
|
|
|
|
request.onsuccess = grabEventAndContinueHandler;
|
|
|
|
let event = yield;
|
|
|
|
|
2011-01-07 09:21:36 +03:00
|
|
|
if (event.type == "success") {
|
|
|
|
testResult = event.target.result;
|
2010-09-10 02:15:44 +04:00
|
|
|
}
|
|
|
|
else {
|
2012-04-12 01:55:22 +04:00
|
|
|
testException = event.target.error.name;
|
2010-09-10 02:15:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
finishTest()
|
|
|
|
yield;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();" onunload="finishTestNow();"></body>
|
|
|
|
|
|
|
|
</html>
|