2011-01-07 06:21:33 +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 report(result) {
|
|
|
|
let message = { source: "iframe" };
|
|
|
|
message.result = result;
|
|
|
|
window.parent.postMessage(message.toSource(), "*");
|
|
|
|
}
|
|
|
|
|
|
|
|
function runIndexedDBTest() {
|
|
|
|
try {
|
2012-06-29 16:48:35 +00:00
|
|
|
let request = indexedDB.open(window.location.pathname, 1);
|
2011-01-07 06:21:33 +00:00
|
|
|
request.onsuccess = function(event) {
|
2011-01-07 06:21:36 +00:00
|
|
|
report(!!(event.target.result instanceof IDBDatabase));
|
2011-01-07 06:21:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
report(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runIndexedDBTest();">
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|