IndexedDB: Add tests, an assert, and some comments around open/close/setVersion call...
authordgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2012 17:30:52 +0000 (17:30 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2012 17:30:52 +0000 (17:30 +0000)
commitd3929936c7772531dbd14bd29e50c3e3d10b4550
tree9f06d27f843f85fcd19715f902f1d595ba4f6ba1
parent65d916e4d2d233e8b5ed05197b67d2ce9ff63eaa
IndexedDB: Add tests, an assert, and some comments around open/close/setVersion call sequencing
https://bugs.webkit.org/show_bug.cgi?id=88829

Reviewed by Tony Chang.

Source/WebCore:

Test: storage/indexeddb/three-setversion-calls.html

* Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::processPendingCalls):

LayoutTests:

* storage/indexeddb/factory-deletedatabase-interactions-expected.txt:
* storage/indexeddb/resources/factory-deletedatabase-interactions.js:
(Connection.this.open.req.onsuccess.that.handle.onversionchange):
(Connection.this.open.req.onsuccess):
(Connection.this.open):
(test3):
(test4.runSteps.):
(test4):
(test4.):
* storage/indexeddb/resources/three-setversion-calls.js: Added.
(test):
(openDBConnection):
(successHandler.return.trans.oncomplete):
(openSuccess1.deleteRequest.onsuccess):
(openSuccess1):
* storage/indexeddb/three-setversion-calls-expected.txt: Added.
* storage/indexeddb/three-setversion-calls.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/factory-deletedatabase-interactions-expected.txt
LayoutTests/storage/indexeddb/resources/factory-deletedatabase-interactions.js
LayoutTests/storage/indexeddb/resources/three-setversion-calls.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/three-setversion-calls-expected.txt [new file with mode: 0644]
LayoutTests/storage/indexeddb/three-setversion-calls.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp