IndexedDB: Fix layout tests to clear previous database structures
authorjsbell@chromium.org <jsbell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jun 2012 23:28:43 +0000 (23:28 +0000)
committerjsbell@chromium.org <jsbell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Jun 2012 23:28:43 +0000 (23:28 +0000)
commitff434019f03f9457cef1a21313f5279200a4148d
treebb6f96323884d88f476e248a7178b9930f7714c9
parent4366b3df2fda3ffd05dd5b86870df2dea079ce04
IndexedDB: Fix layout tests to clear previous database structures
https://bugs.webkit.org/show_bug.cgi?id=89609

Reviewed by Tony Chang.

A handful of tests weren't deleting previously created stores (or the whole
database), which made them fail if trivially re-run in Chromium or under
NRWT with --iterations=2.

* storage/indexeddb/cursor-key-order-expected.txt:
* storage/indexeddb/cursor-primary-key-order-expected.txt:
* storage/indexeddb/open-during-transaction-expected.txt:
* storage/indexeddb/resources/cursor-key-order.js:
(prepareDatabase.deleteRequest.onsuccess.openreq.onsuccess.verreq.onsuccess):
(prepareDatabase.deleteRequest.onsuccess.openreq.onsuccess):
(prepareDatabase.deleteRequest.onsuccess):
(prepareDatabase):
* storage/indexeddb/resources/cursor-primary-key-order.js:
(prepareDatabase.deleteRequest.onsuccess.openRequest.onsuccess.versionChangeRequest.onsuccess):
(prepareDatabase.deleteRequest.onsuccess.openRequest.onsuccess):
(prepareDatabase.deleteRequest.onsuccess):
(prepareDatabase):
* storage/indexeddb/resources/factory-deletedatabase-interactions.js:
* storage/indexeddb/resources/open-close-version.js:
(test6):
(test6.halfDone):
* storage/indexeddb/resources/open-during-transaction.js:
(prepareDatabase.deleteRequest.onsuccess.openreq1.onsuccess.setverreq.onsuccess.setverreq.result.oncomplete):
(prepareDatabase.deleteRequest.onsuccess.openreq1.onsuccess.setverreq.onsuccess):
(prepareDatabase.deleteRequest.onsuccess.openreq1.onsuccess):
(prepareDatabase.deleteRequest.onsuccess):
(prepareDatabase):
* storage/indexeddb/transaction-abort-with-js-recursion-cross-frame-expected.txt:
* storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/cursor-key-order-expected.txt
LayoutTests/storage/indexeddb/cursor-primary-key-order-expected.txt
LayoutTests/storage/indexeddb/open-during-transaction-expected.txt
LayoutTests/storage/indexeddb/resources/cursor-key-order.js
LayoutTests/storage/indexeddb/resources/cursor-primary-key-order.js
LayoutTests/storage/indexeddb/resources/factory-deletedatabase-interactions.js
LayoutTests/storage/indexeddb/resources/open-close-version.js
LayoutTests/storage/indexeddb/resources/open-during-transaction.js
LayoutTests/storage/indexeddb/transaction-abort-with-js-recursion-cross-frame-expected.txt
LayoutTests/storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html