2011-01-06 22:21:33 -08: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 {
|
|
|
|
let request = mozIndexedDB.open(window.location.pathname);
|
|
|
|
request.onsuccess = function(event) {
|
2011-01-06 22:21:36 -08:00
|
|
|
report(!!(event.target.result instanceof IDBDatabase));
|
2011-01-06 22:21:33 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
report(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runIndexedDBTest();">
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|