Extract logic of indexeddb html layout tests into js files that can
authordgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Mar 2012 03:50:43 +0000 (03:50 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Mar 2012 03:50:43 +0000 (03:50 +0000)
commitd65019b48792b2cdab56b3b064356a2dd350a328
tree4018f13131646b1e5062380b2c505cdaeb98677c
parenta4b66946e7fb985010e20b7bea8d0974c1a04bb1
Extract logic of indexeddb html layout tests into js files that can
be run from either a worker or a window.

The two changed -expected.txt files are just for line numbers in JS
error messages.

Skipped were:
- transaction-abort-with-js-recursion.html
- transaction-abort-with-js-recursion-cross-frame.html
- noblobs.html
- structured-clone.html
- tutorial.html
The first four simulate mouse events and the last isn't really a test.
structured-clone.html will be refactored for worker compatibility in a
future patch.

https://bugs.webkit.org/show_bug.cgi?id=81440

Reviewed by Tony Chang.

* storage/indexeddb/constants.html:
* storage/indexeddb/create-and-remove-object-store.html:
* storage/indexeddb/create-object-store-options.html:
... every html file in storage/indexeddb except the ones listed above

* storage/indexeddb/exception-in-event-aborts-expected.txt:
line number in javascript error message changed
* storage/indexeddb/version-change-abort-expected.txt:
line number in javascript error message changed

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
245 files changed:
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/constants.html
LayoutTests/storage/indexeddb/create-and-remove-object-store.html
LayoutTests/storage/indexeddb/create-object-store-options.html
LayoutTests/storage/indexeddb/createObjectStore-name-argument-required.html
LayoutTests/storage/indexeddb/createObjectStore-null-name.html
LayoutTests/storage/indexeddb/cursor-continue.html
LayoutTests/storage/indexeddb/cursor-delete.html
LayoutTests/storage/indexeddb/cursor-inconsistency.html
LayoutTests/storage/indexeddb/cursor-index-delete.html
LayoutTests/storage/indexeddb/cursor-key-order.html
LayoutTests/storage/indexeddb/cursor-primary-key-order.html
LayoutTests/storage/indexeddb/cursor-reverse-bug.html
LayoutTests/storage/indexeddb/cursor-skip-deleted.html
LayoutTests/storage/indexeddb/cursor-update-value-argument-required.html
LayoutTests/storage/indexeddb/cursor-update.html
LayoutTests/storage/indexeddb/data-corruption.html
LayoutTests/storage/indexeddb/database-basics.html
LayoutTests/storage/indexeddb/database-name-undefined.html
LayoutTests/storage/indexeddb/database-odd-names.html
LayoutTests/storage/indexeddb/database-quota.html
LayoutTests/storage/indexeddb/delete-closed-database-object.html
LayoutTests/storage/indexeddb/delete-range.html
LayoutTests/storage/indexeddb/deleteIndex.html
LayoutTests/storage/indexeddb/deleteObjectStore-name-argument-required.html
LayoutTests/storage/indexeddb/deleteObjectStore-null-name.html
LayoutTests/storage/indexeddb/duplicates.html
LayoutTests/storage/indexeddb/error-causes-abort-by-default.html
LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt
LayoutTests/storage/indexeddb/exception-in-event-aborts.html
LayoutTests/storage/indexeddb/factory-basics.html
LayoutTests/storage/indexeddb/factory-cmp.html
LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html
LayoutTests/storage/indexeddb/factory-deletedatabase.html
LayoutTests/storage/indexeddb/index-count.html
LayoutTests/storage/indexeddb/index-cursor.html
LayoutTests/storage/indexeddb/index-get-key-argument-required.html
LayoutTests/storage/indexeddb/index-multientry.html
LayoutTests/storage/indexeddb/index-population.html
LayoutTests/storage/indexeddb/index-unique.html
LayoutTests/storage/indexeddb/invalid-keys.html
LayoutTests/storage/indexeddb/key-generator.html
LayoutTests/storage/indexeddb/key-sort-order-across-types.html
LayoutTests/storage/indexeddb/key-sort-order-date.html
LayoutTests/storage/indexeddb/key-type-array.html
LayoutTests/storage/indexeddb/key-type-infinity.html
LayoutTests/storage/indexeddb/keypath-basics.html
LayoutTests/storage/indexeddb/keypath-edges.html
LayoutTests/storage/indexeddb/keypath-fetch-key.html
LayoutTests/storage/indexeddb/keyrange-required-arguments.html
LayoutTests/storage/indexeddb/keyrange.html
LayoutTests/storage/indexeddb/list-ordering.html
LayoutTests/storage/indexeddb/mozilla/add-twice-failure.html
LayoutTests/storage/indexeddb/mozilla/autoincrement-indexes.html
LayoutTests/storage/indexeddb/mozilla/bad-keypath.html
LayoutTests/storage/indexeddb/mozilla/clear.html
LayoutTests/storage/indexeddb/mozilla/create-index-unique.html
LayoutTests/storage/indexeddb/mozilla/create-index-with-integer-keys.html
LayoutTests/storage/indexeddb/mozilla/create-objectstore-basics.html
LayoutTests/storage/indexeddb/mozilla/create-objectstore-null-name.html
LayoutTests/storage/indexeddb/mozilla/cursor-mutation-objectstore-only.html
LayoutTests/storage/indexeddb/mozilla/cursor-mutation.html
LayoutTests/storage/indexeddb/mozilla/cursor-update-updates-indexes.html
LayoutTests/storage/indexeddb/mozilla/cursors.html
LayoutTests/storage/indexeddb/mozilla/delete-result.html
LayoutTests/storage/indexeddb/mozilla/event-source.html
LayoutTests/storage/indexeddb/mozilla/global-data.html
LayoutTests/storage/indexeddb/mozilla/indexes.html
LayoutTests/storage/indexeddb/mozilla/key-requirements-delete-null-key.html
LayoutTests/storage/indexeddb/mozilla/key-requirements-inline-and-passed.html
LayoutTests/storage/indexeddb/mozilla/key-requirements-put-no-key.html
LayoutTests/storage/indexeddb/mozilla/key-requirements-put-null-key.html
LayoutTests/storage/indexeddb/mozilla/key-requirements.html
LayoutTests/storage/indexeddb/mozilla/object-cursors.html
LayoutTests/storage/indexeddb/mozilla/object-identity.html
LayoutTests/storage/indexeddb/mozilla/object-store-inline-autoincrement-key-added-on-put.html
LayoutTests/storage/indexeddb/mozilla/object-store-remove-values.html
LayoutTests/storage/indexeddb/mozilla/objectstorenames.html
LayoutTests/storage/indexeddb/mozilla/odd-result-order.html
LayoutTests/storage/indexeddb/mozilla/open-database-null-name.html
LayoutTests/storage/indexeddb/mozilla/put-get-values.html
LayoutTests/storage/indexeddb/mozilla/readonly-transactions.html
LayoutTests/storage/indexeddb/mozilla/readwrite-transactions.html
LayoutTests/storage/indexeddb/mozilla/readyState.html
LayoutTests/storage/indexeddb/mozilla/remove-index.html
LayoutTests/storage/indexeddb/mozilla/remove-objectstore.html
LayoutTests/storage/indexeddb/mozilla/resources/add-twice-failure.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/autoincrement-indexes.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/bad-keypath.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/clear.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/create-index-unique.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/create-index-with-integer-keys.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/create-objectstore-basics.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/create-objectstore-null-name.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/cursor-mutation-objectstore-only.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/cursor-mutation.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/cursor-update-updates-indexes.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/cursors.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/delete-result.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/event-source.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/global-data.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/indexes.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/key-requirements-delete-null-key.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/key-requirements-inline-and-passed.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/key-requirements-put-no-key.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/key-requirements-put-null-key.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/key-requirements.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/object-cursors.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/object-identity.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/object-store-inline-autoincrement-key-added-on-put.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/object-store-remove-values.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/objectstorenames.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/odd-result-order.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/open-database-null-name.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/put-get-values.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/readonly-transactions.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/readwrite-transactions.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/readyState.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/remove-index.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/remove-objectstore.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/versionchange-abort.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/resources/versionchange.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/mozilla/versionchange-abort.html
LayoutTests/storage/indexeddb/mozilla/versionchange.html
LayoutTests/storage/indexeddb/mutating-cursor.html
LayoutTests/storage/indexeddb/objectStore-required-arguments.html
LayoutTests/storage/indexeddb/objectstore-autoincrement.html
LayoutTests/storage/indexeddb/objectstore-clear.html
LayoutTests/storage/indexeddb/objectstore-count.html
LayoutTests/storage/indexeddb/objectstore-cursor.html
LayoutTests/storage/indexeddb/objectstore-removeobjectstore.html
LayoutTests/storage/indexeddb/odd-strings.html
LayoutTests/storage/indexeddb/open-close-version.html
LayoutTests/storage/indexeddb/open-cursor.html
LayoutTests/storage/indexeddb/open-during-transaction.html
LayoutTests/storage/indexeddb/prefetch-bugfix-108071.html
LayoutTests/storage/indexeddb/queued-commands.html
LayoutTests/storage/indexeddb/readonly-properties.html
LayoutTests/storage/indexeddb/readonly.html
LayoutTests/storage/indexeddb/request-event-propagation.html
LayoutTests/storage/indexeddb/resources/constants.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/create-and-remove-object-store.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/create-object-store-options.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/createObjectStore-name-argument-required.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/createObjectStore-null-name.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-continue.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-delete.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-inconsistency.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-index-delete.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-key-order.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-primary-key-order.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-reverse-bug.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-skip-deleted.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-update-value-argument-required.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/cursor-update.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/data-corruption.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/database-basics.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/database-name-undefined.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/database-odd-names.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/database-quota.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/delete-closed-database-object.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/delete-range.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/deleteIndex.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/deleteObjectStore-name-argument-required.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/deleteObjectStore-null-name.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/duplicates.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/exception-in-event-aborts.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/factory-basics.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/factory-cmp.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/factory-deletedatabase-interactions.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/factory-deletedatabase.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-count.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-cursor.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-get-key-argument-required.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-multientry.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-population.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/index-unique.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/invalid-keys.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/key-generator.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/key-sort-order-across-types.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/key-sort-order-date.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/key-type-array.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/key-type-infinity.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/keypath-basics.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/keypath-edges.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/keypath-fetch-key.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/keyrange-required-arguments.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/keyrange.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/list-ordering.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/mutating-cursor.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectStore-required-arguments.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectstore-autoincrement.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectstore-clear.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectstore-count.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectstore-cursor.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/objectstore-removeobjectstore.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/odd-strings.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/open-close-version.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/open-cursor.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/open-during-transaction.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/prefetch-bugfix-108071.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/queued-commands.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/readonly-properties.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/readonly.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/request-event-propagation.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/setVersion-null.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/setVersion-undefined.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/set_version_blocked.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/set_version_queue.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-abort.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-after-close.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-and-objectstore-calls.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-basics.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-crash-on-abort.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-event-propagation.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-read-only.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-rollback.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/transaction-storeNames-required.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/two-version-changes.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/value-undefined.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/values-odd-types.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/version-change-abort.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/version-change-exclusive.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/resources/versionchangerequest-activedomobject.js [new file with mode: 0644]
LayoutTests/storage/indexeddb/setVersion-null.html
LayoutTests/storage/indexeddb/setVersion-undefined.html
LayoutTests/storage/indexeddb/set_version_blocked.html
LayoutTests/storage/indexeddb/set_version_queue.html
LayoutTests/storage/indexeddb/transaction-abort.html
LayoutTests/storage/indexeddb/transaction-after-close.html
LayoutTests/storage/indexeddb/transaction-and-objectstore-calls.html
LayoutTests/storage/indexeddb/transaction-basics.html
LayoutTests/storage/indexeddb/transaction-crash-on-abort.html
LayoutTests/storage/indexeddb/transaction-event-propagation.html
LayoutTests/storage/indexeddb/transaction-read-only.html
LayoutTests/storage/indexeddb/transaction-rollback.html
LayoutTests/storage/indexeddb/transaction-storeNames-required.html
LayoutTests/storage/indexeddb/two-version-changes.html
LayoutTests/storage/indexeddb/value-undefined.html
LayoutTests/storage/indexeddb/values-odd-types.html
LayoutTests/storage/indexeddb/version-change-abort-expected.txt
LayoutTests/storage/indexeddb/version-change-abort.html
LayoutTests/storage/indexeddb/version-change-exclusive.html
LayoutTests/storage/indexeddb/versionchangerequest-activedomobject.html