2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
6 /* import-globals-from xpcshell-head-parent-process.js */
8 function ok(cond, msg) {
9 dump("ok(" + cond + ', "' + msg + '")');
10 Assert.ok(!!cond, Components.stack.caller);
13 function finishTest() {
14 executeSoon(function() {
20 const name = "Splendid Test";
22 Cu.importGlobalProperties(["indexedDB"]);
26 let keyRange = IDBKeyRange.only(42);
27 ok(keyRange, "Got keyRange");
29 let request = indexedDB.open(name, 1);
30 request.onerror = function(event) {
31 ok(false, "indexedDB error, '" + event.target.error.name + "'");
34 request.onsuccess = function(event) {
35 let db = event.target.result;
36 ok(db, "Got database");