Opening/Creating Database ‣
InvalidStateError: Failed to execute 'openDatabase' on 'Window': unable to open database (14 sqlite_open returned null)
at createSysDB (https://raw.githack.com/axemclion/IndexedDBShim/v6.1.0/dist/src/IDBFactory.js:224:17)
at cb (https://raw.githack.com/axemclion/IndexedDBShim/v6.1.0/dist/src/IDBFactory.js:627:9)
at processNextInConnectionQueue (https://raw.githack.com/axemclion/IndexedDBShim/v6.1.0/dist/src/IDBFactory.js:41:5)
at addRequestToConnectionQueue (https://raw.githack.com/axemclion/IndexedDBShim/v6.1.0/dist/src/IDBFactory.js:52:9)
at IDBFactory.deleteDatabase (https://raw.githack.com/axemclion/IndexedDBShim/v6.1.0/dist/src/IDBFactory.js:626:5)
at global.initionalSituation (setup.js:26:29)
at Context.<anonymous> (database.js:3:9)
initionalSituation(function(){
var request = indexedDB.open(dbName);
request.onsuccess = function(e){
assert.equal(e.target.result.name, dbName, "Database opened/created");
// Necessary for indexedDB who work with setVersion
assert.equal(parseInt(e.target.result.version), 1, "Database opened/created");
e.target.result.close();
done();
};
request.onerror = function(){
assert.ok(false, "Creating database failed");
done();
};
request.onupgradeneeded = function(e){
assert.equal(e.type, "upgradeneeded", "Upgrading database");
};
request.onblocked = function(e){
assert.ok(false, "Blocked database");
};
}, done, assert);