<script>

var request = window.indexedDB.deleteDatabase("IndexedDBMultiProcess");
request.onsuccess = function(e)
{
    continueTest();
}
request.onerror = function(e)
{
    // Unexpected error
    window.webkit.messageHandlers.testHandler.postMessage('Error opening database');
}

function continueTest()
{
    var request = window.indexedDB.open("IndexedDBMultiProcess", 2);

    request.onsuccess = function()
    {
        window.webkit.messageHandlers.testHandler.postMessage('Success');
    }

    request.