Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/indexedDB/test/chrome.toml
<?xml version="1.0"?>
<!--
Any copyright is dedicated to the Public Domain.
-->
onload="runTest();">
<script type="application/javascript">
<![CDATA[
/* import-globals-from chromeHelpers.js */
function* testSteps() {
const name = window.location.pathname;
// Test for IDBKeyRange and indexedDB availability in chrome windows.
var keyRange = IDBKeyRange.only(42);
ok(keyRange, "Got keyRange");
var request = indexedDB.open(name, 1);
request.onerror = errorHandler;
request.onsuccess = grabEventAndContinueHandler;
let event = yield undefined;
let db = event.target.result;
ok(db, "Got database");
finishTest();
yield undefined;
}
]]>
</script>
<script type="text/javascript" src="chromeHelpers.js"></script>
</body>
</window>