blob: 0006625a63f830740123392cb31c97151270c41b [file] [log] [blame]
if (this.importScripts) {
importScripts('../../../fast/js/resources/js-test-pre.js');
importScripts('shared.js');
}
description("Test IndexedDB with null version string");
function test()
{
removeVendorPrefixes();
name = self.location.pathname;
request = evalAndLog("indexedDB.open(name)");
request.onsuccess = openSuccess;
request.onerror = unexpectedErrorCallback;
}
function openSuccess()
{
db = evalAndLog("db = event.target.result");
request = evalAndLog("db.setVersion(null);");
request.onsuccess = postSetVersion;
request.onerror = unexpectedErrorCallback;
}
function postSetVersion()
{
shouldBeEqualToString("db.version", "null");
finishJSTest();
}
test();