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>
|
2016-04-05 19:58:00 +03:00
|
|
|
<meta charset=UTF-8>
|
2010-09-10 02:15:44 +04:00
|
|
|
<title>Indexed Database Test</title>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7">
|
|
|
|
function testSteps()
|
|
|
|
{
|
|
|
|
const name = window.location.pathname;
|
|
|
|
|
2014-11-28 11:44:12 +03:00
|
|
|
let request = indexedDB.open(name, { version: 1,
|
|
|
|
storage: "persistent" });
|
2010-09-10 02:15:44 +04:00
|
|
|
request.onerror = grabEventAndContinueHandler;
|
|
|
|
request.onsuccess = grabEventAndContinueHandler;
|
2013-07-11 01:52:35 +04:00
|
|
|
let event = yield undefined;
|
2010-09-10 02:15:44 +04:00
|
|
|
|
2011-01-07 09:21:36 +03:00
|
|
|
if (event.type == "success") {
|
2016-10-19 05:55:12 +03:00
|
|
|
testResult = event.target.result instanceof IDBDatabase;
|
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
|
|
|
}
|
|
|
|
|
2012-06-29 20:48:34 +04:00
|
|
|
event.preventDefault();
|
|
|
|
|
2010-09-10 02:15:44 +04:00
|
|
|
finishTest()
|
2013-07-11 01:52:35 +04:00
|
|
|
yield undefined;
|
2010-09-10 02:15:44 +04:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();" onunload="finishTestNow();"></body>
|
|
|
|
|
|
|
|
</html>
|