blob: d8ab125f2feaeb29cdebd83729a3a699880d0929 [file] [log] [blame]
<script>
var request = window.indexedDB.open("IndexedDBPersistence");
request.onsuccess = function(event)
{
window.webkit.messageHandlers.testHandler.postMessage(event.target.result.version + " " + event.target.result.objectStoreNames[0]);
}
request.onerror = function()
{
// Unexpected error
window.webkit.messageHandlers.testHandler.postMessage('Unexpected Error');
}
request.onupgradeneeded = function()
{
// Unexpected error
window.webkit.messageHandlers.testHandler.postMessage('Unexpected UpgradeNeeded');
}
</script>