Modern IDB: New database versions are never committed to SQLite.
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebKit2Cocoa / IndexedDBPersistence-2.html
1 <script>
2
3 var request = window.indexedDB.open("IndexedDBPersistence");
4
5 request.onsuccess = function(event)
6 {
7     window.webkit.messageHandlers.testHandler.postMessage(event.target.result.version + " " + event.target.result.objectStoreNames[0]);
8 }
9
10 request.onerror = function()
11 {
12     // Unexpected error
13     window.webkit.messageHandlers.testHandler.postMessage('Unexpected Error');
14 }
15
16 request.onupgradeneeded = function()
17 {
18     // Unexpected error
19     window.webkit.messageHandlers.testHandler.postMessage('Unexpected UpgradeNeeded');
20 }
21
22 </script>