From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/web-platform/tests/IndexedDB/OWNERS | 7 + testing/web-platform/tests/IndexedDB/README.md | 8 + .../IndexedDB/abort-in-initial-upgradeneeded.html | 35 ++ .../tests/IndexedDB/close-in-upgradeneeded.html | 39 +++ .../tests/IndexedDB/cursor-overloads.htm | 88 +++++ .../tests/IndexedDB/idb_binary_key_conversion.htm | 79 +++++ .../tests/IndexedDB/idb_webworkers.htm | 33 ++ .../IndexedDB/idbcursor-advance-continue-async.htm | 186 ++++++++++ .../tests/IndexedDB/idbcursor-advance-invalid.htm | 188 ++++++++++ .../tests/IndexedDB/idbcursor-advance.htm | 243 +++++++++++++ .../tests/IndexedDB/idbcursor-continue.htm | 240 +++++++++++++ ...dbcursor-continuePrimaryKey-exception-order.htm | 382 +++++++++++++++++++++ .../idbcursor-direction-index-keyrange.htm | 82 +++++ .../tests/IndexedDB/idbcursor-direction-index.htm | 81 +++++ .../idbcursor-direction-objectstore-keyrange.htm | 77 +++++ .../IndexedDB/idbcursor-direction-objectstore.htm | 80 +++++ .../tests/IndexedDB/idbcursor-direction.htm | 73 ++++ .../web-platform/tests/IndexedDB/idbcursor-key.htm | 57 +++ .../tests/IndexedDB/idbcursor-primarykey.htm | 61 ++++ .../tests/IndexedDB/idbcursor-reused.htm | 69 ++++ .../tests/IndexedDB/idbcursor-source.htm | 68 ++++ .../tests/IndexedDB/idbcursor_advance_index.htm | 57 +++ .../tests/IndexedDB/idbcursor_advance_index2.htm | 47 +++ .../tests/IndexedDB/idbcursor_advance_index3.htm | 47 +++ .../tests/IndexedDB/idbcursor_advance_index5.htm | 55 +++ .../tests/IndexedDB/idbcursor_advance_index6.htm | 37 ++ .../tests/IndexedDB/idbcursor_advance_index7.htm | 39 +++ .../tests/IndexedDB/idbcursor_advance_index8.htm | 38 ++ .../tests/IndexedDB/idbcursor_advance_index9.htm | 37 ++ .../IndexedDB/idbcursor_advance_objectstore.htm | 54 +++ .../IndexedDB/idbcursor_advance_objectstore2.htm | 40 +++ .../IndexedDB/idbcursor_advance_objectstore3.htm | 42 +++ .../IndexedDB/idbcursor_advance_objectstore4.htm | 41 +++ .../IndexedDB/idbcursor_advance_objectstore5.htm | 36 ++ .../tests/IndexedDB/idbcursor_continue_index.htm | 52 +++ .../tests/IndexedDB/idbcursor_continue_index2.htm | 49 +++ .../tests/IndexedDB/idbcursor_continue_index3.htm | 54 +++ .../tests/IndexedDB/idbcursor_continue_index4.htm | 65 ++++ .../tests/IndexedDB/idbcursor_continue_index5.htm | 64 ++++ .../tests/IndexedDB/idbcursor_continue_index6.htm | 64 ++++ .../tests/IndexedDB/idbcursor_continue_index7.htm | 38 ++ .../tests/IndexedDB/idbcursor_continue_index8.htm | 38 ++ .../tests/IndexedDB/idbcursor_continue_invalid.htm | 54 +++ .../IndexedDB/idbcursor_continue_objectstore.htm | 46 +++ .../IndexedDB/idbcursor_continue_objectstore2.htm | 40 +++ .../IndexedDB/idbcursor_continue_objectstore3.htm | 40 +++ .../IndexedDB/idbcursor_continue_objectstore4.htm | 57 +++ .../IndexedDB/idbcursor_continue_objectstore5.htm | 42 +++ .../IndexedDB/idbcursor_continue_objectstore6.htm | 37 ++ .../tests/IndexedDB/idbcursor_delete_index.htm | 69 ++++ .../tests/IndexedDB/idbcursor_delete_index2.htm | 42 +++ .../tests/IndexedDB/idbcursor_delete_index3.htm | 40 +++ .../tests/IndexedDB/idbcursor_delete_index4.htm | 38 ++ .../tests/IndexedDB/idbcursor_delete_index5.htm | 39 +++ .../IndexedDB/idbcursor_delete_objectstore.htm | 65 ++++ .../IndexedDB/idbcursor_delete_objectstore2.htm | 40 +++ .../IndexedDB/idbcursor_delete_objectstore3.htm | 39 +++ .../IndexedDB/idbcursor_delete_objectstore4.htm | 37 ++ .../IndexedDB/idbcursor_delete_objectstore5.htm | 41 +++ .../tests/IndexedDB/idbcursor_iterating.htm | 110 ++++++ .../tests/IndexedDB/idbcursor_iterating_index.htm | 53 +++ .../tests/IndexedDB/idbcursor_iterating_index2.htm | 53 +++ .../IndexedDB/idbcursor_iterating_objectstore.htm | 51 +++ .../IndexedDB/idbcursor_iterating_objectstore2.htm | 51 +++ .../tests/IndexedDB/idbcursor_update_index.htm | 64 ++++ .../tests/IndexedDB/idbcursor_update_index2.htm | 40 +++ .../tests/IndexedDB/idbcursor_update_index3.htm | 41 +++ .../tests/IndexedDB/idbcursor_update_index4.htm | 39 +++ .../tests/IndexedDB/idbcursor_update_index5.htm | 45 +++ .../tests/IndexedDB/idbcursor_update_index6.htm | 41 +++ .../tests/IndexedDB/idbcursor_update_index7.htm | 41 +++ .../tests/IndexedDB/idbcursor_update_index8.htm | 45 +++ .../IndexedDB/idbcursor_update_objectstore.htm | 60 ++++ .../IndexedDB/idbcursor_update_objectstore2.htm | 38 ++ .../IndexedDB/idbcursor_update_objectstore3.htm | 40 +++ .../IndexedDB/idbcursor_update_objectstore4.htm | 39 +++ .../IndexedDB/idbcursor_update_objectstore5.htm | 41 +++ .../IndexedDB/idbcursor_update_objectstore6.htm | 43 +++ .../IndexedDB/idbcursor_update_objectstore7.htm | 39 +++ .../IndexedDB/idbcursor_update_objectstore8.htm | 39 +++ .../IndexedDB/idbcursor_update_objectstore9.htm | 45 +++ .../tests/IndexedDB/idbdatabase_close.htm | 43 +++ .../tests/IndexedDB/idbdatabase_close2.htm | 39 +++ ...ase_createObjectStore-createIndex-emptyname.htm | 45 +++ .../IndexedDB/idbdatabase_createObjectStore.htm | 29 ++ .../idbdatabase_createObjectStore10-1000ends.htm | 37 ++ .../idbdatabase_createObjectStore10-emptyname.htm | 38 ++ .../IndexedDB/idbdatabase_createObjectStore11.htm | 25 ++ .../IndexedDB/idbdatabase_createObjectStore2.htm | 33 ++ .../IndexedDB/idbdatabase_createObjectStore3.htm | 24 ++ .../IndexedDB/idbdatabase_createObjectStore4.htm | 27 ++ .../IndexedDB/idbdatabase_createObjectStore5.htm | 33 ++ .../IndexedDB/idbdatabase_createObjectStore6.htm | 30 ++ .../IndexedDB/idbdatabase_createObjectStore7.htm | 25 ++ .../idbdatabase_createObjectStore8-parameters.htm | 39 +++ ...tabase_createObjectStore9-invalidparameters.htm | 29 ++ .../IndexedDB/idbdatabase_deleteObjectStore.htm | 25 ++ .../IndexedDB/idbdatabase_deleteObjectStore2.htm | 31 ++ .../IndexedDB/idbdatabase_deleteObjectStore3.htm | 23 ++ .../idbdatabase_deleteObjectStore4-not_reused.htm | 42 +++ .../tests/IndexedDB/idbdatabase_transaction.htm | 24 ++ .../tests/IndexedDB/idbdatabase_transaction2.htm | 27 ++ .../tests/IndexedDB/idbdatabase_transaction3.htm | 28 ++ .../tests/IndexedDB/idbdatabase_transaction4.htm | 26 ++ .../tests/IndexedDB/idbdatabase_transaction5.htm | 22 ++ .../tests/IndexedDB/idbfactory_cmp.htm | 21 ++ .../tests/IndexedDB/idbfactory_cmp2.htm | 41 +++ .../tests/IndexedDB/idbfactory_cmp3.htm | 27 ++ .../tests/IndexedDB/idbfactory_cmp4.htm | 40 +++ .../tests/IndexedDB/idbfactory_deleteDatabase.htm | 25 ++ .../tests/IndexedDB/idbfactory_deleteDatabase2.htm | 27 ++ .../tests/IndexedDB/idbfactory_deleteDatabase3.htm | 33 ++ .../tests/IndexedDB/idbfactory_deleteDatabase4.htm | 58 ++++ .../tests/IndexedDB/idbfactory_open.htm | 18 + .../tests/IndexedDB/idbfactory_open10.htm | 91 +++++ .../tests/IndexedDB/idbfactory_open11.htm | 60 ++++ .../tests/IndexedDB/idbfactory_open12.htm | 50 +++ .../tests/IndexedDB/idbfactory_open2.htm | 20 ++ .../tests/IndexedDB/idbfactory_open3.htm | 27 ++ .../tests/IndexedDB/idbfactory_open4.htm | 20 ++ .../tests/IndexedDB/idbfactory_open5.htm | 18 + .../tests/IndexedDB/idbfactory_open6.htm | 34 ++ .../tests/IndexedDB/idbfactory_open7.htm | 38 ++ .../tests/IndexedDB/idbfactory_open8.htm | 27 ++ .../tests/IndexedDB/idbfactory_open9.htm | 71 ++++ .../IndexedDB/idbindex-multientry-arraykeypath.htm | 23 ++ .../tests/IndexedDB/idbindex-multientry-big.htm | 58 ++++ .../tests/IndexedDB/idbindex-multientry.htm | 53 +++ .../tests/IndexedDB/idbindex-rename-abort.html | 110 ++++++ .../tests/IndexedDB/idbindex-rename-errors.html | 130 +++++++ .../tests/IndexedDB/idbindex-rename.html | 299 ++++++++++++++++ .../tests/IndexedDB/idbindex_count.htm | 37 ++ .../tests/IndexedDB/idbindex_count2.htm | 37 ++ .../tests/IndexedDB/idbindex_count3.htm | 28 ++ .../tests/IndexedDB/idbindex_count4.htm | 37 ++ .../web-platform/tests/IndexedDB/idbindex_get.htm | 36 ++ .../web-platform/tests/IndexedDB/idbindex_get2.htm | 39 +++ .../web-platform/tests/IndexedDB/idbindex_get3.htm | 27 ++ .../web-platform/tests/IndexedDB/idbindex_get4.htm | 39 +++ .../web-platform/tests/IndexedDB/idbindex_get5.htm | 26 ++ .../web-platform/tests/IndexedDB/idbindex_get6.htm | 29 ++ .../web-platform/tests/IndexedDB/idbindex_get7.htm | 32 ++ .../web-platform/tests/IndexedDB/idbindex_get8.htm | 27 ++ .../tests/IndexedDB/idbindex_getAll.html | 232 +++++++++++++ .../tests/IndexedDB/idbindex_getAllKeys.html | 207 +++++++++++ .../tests/IndexedDB/idbindex_getKey.htm | 38 ++ .../tests/IndexedDB/idbindex_getKey2.htm | 39 +++ .../tests/IndexedDB/idbindex_getKey3.htm | 28 ++ .../tests/IndexedDB/idbindex_getKey4.htm | 38 ++ .../tests/IndexedDB/idbindex_getKey5.htm | 26 ++ .../tests/IndexedDB/idbindex_getKey6.htm | 29 ++ .../tests/IndexedDB/idbindex_getKey7.htm | 32 ++ .../tests/IndexedDB/idbindex_getKey8.htm | 27 ++ .../tests/IndexedDB/idbindex_indexNames.htm | 34 ++ .../tests/IndexedDB/idbindex_openCursor.htm | 29 ++ .../tests/IndexedDB/idbindex_openCursor2.htm | 32 ++ .../tests/IndexedDB/idbindex_openCursor3.htm | 27 ++ .../tests/IndexedDB/idbindex_openKeyCursor.htm | 28 ++ .../tests/IndexedDB/idbindex_openKeyCursor2.htm | 29 ++ .../tests/IndexedDB/idbindex_openKeyCursor3.htm | 32 ++ .../tests/IndexedDB/idbindex_openKeyCursor4.htm | 27 ++ .../tests/IndexedDB/idbkeyrange-includes.htm | 61 ++++ .../web-platform/tests/IndexedDB/idbkeyrange.htm | 67 ++++ .../tests/IndexedDB/idbkeyrange_incorrect.htm | 92 +++++ .../IndexedDB/idbobjectstore-rename-abort.html | 120 +++++++ .../IndexedDB/idbobjectstore-rename-errors.html | 118 +++++++ .../IndexedDB/idbobjectstore-rename-store.html | 367 ++++++++++++++++++++ .../tests/IndexedDB/idbobjectstore_add.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_add10.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_add11.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_add12.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_add13.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_add14.htm | 32 ++ .../tests/IndexedDB/idbobjectstore_add15.htm | 31 ++ .../tests/IndexedDB/idbobjectstore_add16.htm | 25 ++ .../tests/IndexedDB/idbobjectstore_add2.htm | 36 ++ .../tests/IndexedDB/idbobjectstore_add3.htm | 39 +++ .../tests/IndexedDB/idbobjectstore_add4.htm | 40 +++ .../tests/IndexedDB/idbobjectstore_add5.htm | 34 ++ .../tests/IndexedDB/idbobjectstore_add6.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_add7.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_add8.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_add9.htm | 27 ++ .../tests/IndexedDB/idbobjectstore_clear.htm | 41 +++ .../tests/IndexedDB/idbobjectstore_clear2.htm | 43 +++ .../tests/IndexedDB/idbobjectstore_clear3.htm | 36 ++ .../tests/IndexedDB/idbobjectstore_clear4.htm | 25 ++ .../tests/IndexedDB/idbobjectstore_count.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_count2.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_count3.htm | 31 ++ .../tests/IndexedDB/idbobjectstore_count4.htm | 25 ++ .../tests/IndexedDB/idbobjectstore_createIndex.htm | 30 ++ .../IndexedDB/idbobjectstore_createIndex10.htm | 24 ++ .../IndexedDB/idbobjectstore_createIndex11.htm | 23 ++ .../IndexedDB/idbobjectstore_createIndex12.htm | 31 ++ .../IndexedDB/idbobjectstore_createIndex13.htm | 31 ++ ...dbobjectstore_createIndex14-exception_order.htm | 89 +++++ .../IndexedDB/idbobjectstore_createIndex2.htm | 41 +++ ...bobjectstore_createIndex3-usable-right-away.htm | 38 ++ ...tstore_createIndex4-deleteIndex-event_order.htm | 66 ++++ .../idbobjectstore_createIndex5-emptykeypath.htm | 38 ++ .../idbobjectstore_createIndex6-event_order.htm | 75 ++++ .../idbobjectstore_createIndex7-event_order.htm | 80 +++++ .../idbobjectstore_createIndex8-valid_keys.htm | 54 +++ .../idbobjectstore_createIndex9-emptyname.htm | 41 +++ .../tests/IndexedDB/idbobjectstore_delete.htm | 46 +++ .../tests/IndexedDB/idbobjectstore_delete2.htm | 27 ++ .../tests/IndexedDB/idbobjectstore_delete3.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_delete4.htm | 48 +++ .../tests/IndexedDB/idbobjectstore_delete5.htm | 32 ++ .../tests/IndexedDB/idbobjectstore_delete6.htm | 36 ++ .../tests/IndexedDB/idbobjectstore_delete7.htm | 27 ++ .../tests/IndexedDB/idbobjectstore_deleteIndex.htm | 43 +++ .../tests/IndexedDB/idbobjectstore_deleted.htm | 49 +++ .../tests/IndexedDB/idbobjectstore_get.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_get2.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_get3.htm | 34 ++ .../tests/IndexedDB/idbobjectstore_get4.htm | 27 ++ .../tests/IndexedDB/idbobjectstore_get5.htm | 31 ++ .../tests/IndexedDB/idbobjectstore_get6.htm | 30 ++ .../tests/IndexedDB/idbobjectstore_get7.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_getAll.html | 174 ++++++++++ .../tests/IndexedDB/idbobjectstore_getAllKeys.html | 167 +++++++++ .../tests/IndexedDB/idbobjectstore_index.htm | 34 ++ .../tests/IndexedDB/idbobjectstore_openCursor.htm | 42 +++ .../idbobjectstore_openCursor_invalid.htm | 50 +++ .../IndexedDB/idbobjectstore_openKeyCursor.htm | 139 ++++++++ .../tests/IndexedDB/idbobjectstore_put.htm | 35 ++ .../tests/IndexedDB/idbobjectstore_put10.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_put11.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_put12.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_put13.htm | 29 ++ .../tests/IndexedDB/idbobjectstore_put14.htm | 32 ++ .../tests/IndexedDB/idbobjectstore_put15.htm | 31 ++ .../tests/IndexedDB/idbobjectstore_put16.htm | 25 ++ .../tests/IndexedDB/idbobjectstore_put2.htm | 36 ++ .../tests/IndexedDB/idbobjectstore_put3.htm | 48 +++ .../tests/IndexedDB/idbobjectstore_put4.htm | 40 +++ .../tests/IndexedDB/idbobjectstore_put5.htm | 34 ++ .../tests/IndexedDB/idbobjectstore_put6.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_put7.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_put8.htm | 47 +++ .../tests/IndexedDB/idbobjectstore_put9.htm | 27 ++ .../tests/IndexedDB/idbtransaction-oncomplete.htm | 53 +++ .../tests/IndexedDB/idbtransaction.htm | 46 +++ .../tests/IndexedDB/idbtransaction_abort.htm | 41 +++ .../IndexedDB/idbtransaction_objectStoreNames.html | 164 +++++++++ .../tests/IndexedDB/idbversionchangeevent.htm | 66 ++++ testing/web-platform/tests/IndexedDB/idbworker.js | 34 ++ .../tests/IndexedDB/index_sort_order.htm | 51 +++ .../web-platform/tests/IndexedDB/interfaces.html | 50 +++ .../web-platform/tests/IndexedDB/interfaces.idl | 156 +++++++++ .../tests/IndexedDB/interfaces.worker.js | 37 ++ .../web-platform/tests/IndexedDB/key_invalid.htm | 129 +++++++ .../web-platform/tests/IndexedDB/key_valid.html | 75 ++++ .../IndexedDB/keygenerator-constrainterror.htm | 73 ++++ .../tests/IndexedDB/keygenerator-overflow.htm | 70 ++++ .../web-platform/tests/IndexedDB/keygenerator.htm | 65 ++++ testing/web-platform/tests/IndexedDB/keyorder.htm | 175 ++++++++++ testing/web-platform/tests/IndexedDB/keypath.htm | 146 ++++++++ .../tests/IndexedDB/keypath_invalid.htm | 65 ++++ .../tests/IndexedDB/keypath_maxsize.htm | 63 ++++ .../web-platform/tests/IndexedDB/list_ordering.htm | 61 ++++ .../tests/IndexedDB/objectstore_keyorder.htm | 49 +++ .../tests/IndexedDB/request_bubble-and-capture.htm | 69 ++++ .../tests/IndexedDB/string-list-ordering.htm | 85 +++++ .../tests/IndexedDB/support-promises.js | 200 +++++++++++ testing/web-platform/tests/IndexedDB/support.js | 123 +++++++ .../transaction-abort-generator-revert.html | 108 ++++++ .../transaction-abort-index-metadata-revert.html | 276 +++++++++++++++ ...transaction-abort-multiple-metadata-revert.html | 291 ++++++++++++++++ ...saction-abort-object-store-metadata-revert.html | 188 ++++++++++ .../transaction-create_in_versionchange.htm | 82 +++++ .../IndexedDB/transaction-lifetime-blocked.htm | 108 ++++++ .../IndexedDB/transaction-lifetime-empty.html | 89 +++++ .../tests/IndexedDB/transaction-lifetime.htm | 101 ++++++ .../tests/IndexedDB/transaction-requestqueue.htm | 89 +++++ .../IndexedDB/transaction_bubble-and-capture.htm | 75 ++++ testing/web-platform/tests/IndexedDB/value.htm | 40 +++ .../tests/IndexedDB/value_recursive.htm | 66 ++++ .../tests/IndexedDB/writer-starvation.htm | 105 ++++++ 281 files changed, 16309 insertions(+) create mode 100644 testing/web-platform/tests/IndexedDB/OWNERS create mode 100644 testing/web-platform/tests/IndexedDB/README.md create mode 100644 testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.html create mode 100644 testing/web-platform/tests/IndexedDB/close-in-upgradeneeded.html create mode 100644 testing/web-platform/tests/IndexedDB/cursor-overloads.htm create mode 100644 testing/web-platform/tests/IndexedDB/idb_binary_key_conversion.htm create mode 100644 testing/web-platform/tests/IndexedDB/idb_webworkers.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-advance-continue-async.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-advance-invalid.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-advance.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-continue.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-direction-index-keyrange.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-direction-index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore-keyrange.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-direction.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-key.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-primarykey.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-reused.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor-source.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_index9.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_index8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_invalid.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_index2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_index3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_index4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_index5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_iterating.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_iterating_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_iterating_index2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_index8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore9.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_close.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_close2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore-createIndex-emptyname.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-1000ends.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-emptyname.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore11.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore8-parameters.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore9-invalidparameters.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_transaction.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_transaction2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_transaction3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_transaction4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbdatabase_transaction5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_cmp.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_cmp2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_cmp3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_cmp4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open10.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open11.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open12.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbfactory_open9.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-multientry-arraykeypath.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-multientry-big.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-multientry.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-rename-abort.html create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-rename-errors.html create mode 100644 testing/web-platform/tests/IndexedDB/idbindex-rename.html create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_count.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_count2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_count3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_count4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_get8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getAll.html create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getAllKeys.html create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_getKey8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_indexNames.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openCursor.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openCursor3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbkeyrange-includes.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbkeyrange.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbkeyrange_incorrect.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore-rename-abort.html create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore-rename-errors.html create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore-rename-store.html create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add10.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add11.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add12.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add13.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add14.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add15.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add16.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_add9.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_clear.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_clear2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_clear3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_clear4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_count.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_count2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_count3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_count4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex10.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex11.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex12.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex13.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex14-exception_order.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex3-usable-right-away.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex4-deleteIndex-event_order.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex5-emptykeypath.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex6-event_order.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex7-event_order.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex9-emptyname.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_delete7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_deleteIndex.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_get7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_getAll.html create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_getAllKeys.html create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_index.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor_invalid.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_openKeyCursor.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put10.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put11.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put12.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put13.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put14.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put15.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put16.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put2.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put3.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put4.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put5.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put6.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put7.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put8.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbobjectstore_put9.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbtransaction-oncomplete.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbtransaction.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbtransaction_abort.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbtransaction_objectStoreNames.html create mode 100644 testing/web-platform/tests/IndexedDB/idbversionchangeevent.htm create mode 100644 testing/web-platform/tests/IndexedDB/idbworker.js create mode 100644 testing/web-platform/tests/IndexedDB/index_sort_order.htm create mode 100644 testing/web-platform/tests/IndexedDB/interfaces.html create mode 100644 testing/web-platform/tests/IndexedDB/interfaces.idl create mode 100644 testing/web-platform/tests/IndexedDB/interfaces.worker.js create mode 100644 testing/web-platform/tests/IndexedDB/key_invalid.htm create mode 100644 testing/web-platform/tests/IndexedDB/key_valid.html create mode 100644 testing/web-platform/tests/IndexedDB/keygenerator-constrainterror.htm create mode 100644 testing/web-platform/tests/IndexedDB/keygenerator-overflow.htm create mode 100644 testing/web-platform/tests/IndexedDB/keygenerator.htm create mode 100644 testing/web-platform/tests/IndexedDB/keyorder.htm create mode 100644 testing/web-platform/tests/IndexedDB/keypath.htm create mode 100644 testing/web-platform/tests/IndexedDB/keypath_invalid.htm create mode 100644 testing/web-platform/tests/IndexedDB/keypath_maxsize.htm create mode 100644 testing/web-platform/tests/IndexedDB/list_ordering.htm create mode 100644 testing/web-platform/tests/IndexedDB/objectstore_keyorder.htm create mode 100644 testing/web-platform/tests/IndexedDB/request_bubble-and-capture.htm create mode 100644 testing/web-platform/tests/IndexedDB/string-list-ordering.htm create mode 100644 testing/web-platform/tests/IndexedDB/support-promises.js create mode 100644 testing/web-platform/tests/IndexedDB/support.js create mode 100644 testing/web-platform/tests/IndexedDB/transaction-abort-generator-revert.html create mode 100644 testing/web-platform/tests/IndexedDB/transaction-abort-index-metadata-revert.html create mode 100644 testing/web-platform/tests/IndexedDB/transaction-abort-multiple-metadata-revert.html create mode 100644 testing/web-platform/tests/IndexedDB/transaction-abort-object-store-metadata-revert.html create mode 100644 testing/web-platform/tests/IndexedDB/transaction-create_in_versionchange.htm create mode 100644 testing/web-platform/tests/IndexedDB/transaction-lifetime-blocked.htm create mode 100644 testing/web-platform/tests/IndexedDB/transaction-lifetime-empty.html create mode 100644 testing/web-platform/tests/IndexedDB/transaction-lifetime.htm create mode 100644 testing/web-platform/tests/IndexedDB/transaction-requestqueue.htm create mode 100644 testing/web-platform/tests/IndexedDB/transaction_bubble-and-capture.htm create mode 100644 testing/web-platform/tests/IndexedDB/value.htm create mode 100644 testing/web-platform/tests/IndexedDB/value_recursive.htm create mode 100644 testing/web-platform/tests/IndexedDB/writer-starvation.htm (limited to 'testing/web-platform/tests/IndexedDB') diff --git a/testing/web-platform/tests/IndexedDB/OWNERS b/testing/web-platform/tests/IndexedDB/OWNERS new file mode 100644 index 000000000..bd8dca9f6 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/OWNERS @@ -0,0 +1,7 @@ +@Velmont +@inexorabletash +@chunywang +@dumbmatter +@zqzhang +@yunxiaoxie +@zhaozihao diff --git a/testing/web-platform/tests/IndexedDB/README.md b/testing/web-platform/tests/IndexedDB/README.md new file mode 100644 index 000000000..6b636d5f1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/README.md @@ -0,0 +1,8 @@ +This directory contains the Indexed Database API test suite. + +To run the tests in this test suite within a browser, go to: . + +The latest Editor's Draft of Indexed Database API is: . + +The latest W3C Technical Report of Indexed Database API is: . + diff --git a/testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.html b/testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.html new file mode 100644 index 000000000..6330ecb02 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/abort-in-initial-upgradeneeded.html @@ -0,0 +1,35 @@ + + +Test that an abort in the initial upgradeneeded sets version back to 0 + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/close-in-upgradeneeded.html b/testing/web-platform/tests/IndexedDB/close-in-upgradeneeded.html new file mode 100644 index 000000000..eda823a21 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/close-in-upgradeneeded.html @@ -0,0 +1,39 @@ + + +When db.close is called in upgradeneeded, the db is cleaned up on refresh + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/cursor-overloads.htm b/testing/web-platform/tests/IndexedDB/cursor-overloads.htm new file mode 100644 index 000000000..343e5a4cc --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/cursor-overloads.htm @@ -0,0 +1,88 @@ + + + + + +Validate the overloads of IDBObjectStore.openCursor(), IDBIndex.openCursor() and IDBIndex.openKeyCursor() + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idb_binary_key_conversion.htm b/testing/web-platform/tests/IndexedDB/idb_binary_key_conversion.htm new file mode 100644 index 000000000..b55e6324b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idb_binary_key_conversion.htm @@ -0,0 +1,79 @@ + + +Verify the coversion of various types of BufferSource + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idb_webworkers.htm b/testing/web-platform/tests/IndexedDB/idb_webworkers.htm new file mode 100644 index 000000000..dba3a93f1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idb_webworkers.htm @@ -0,0 +1,33 @@ + +IndexedDB inside of a WebWorker + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-advance-continue-async.htm b/testing/web-platform/tests/IndexedDB/idbcursor-advance-continue-async.htm new file mode 100644 index 000000000..d1b6af3e1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-advance-continue-async.htm @@ -0,0 +1,186 @@ + +IDBCursor asyncness + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-advance-invalid.htm b/testing/web-platform/tests/IndexedDB/idbcursor-advance-invalid.htm new file mode 100644 index 000000000..dda216b75 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-advance-invalid.htm @@ -0,0 +1,188 @@ + +IDBCursor.advance() - invalid + + + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-advance.htm b/testing/web-platform/tests/IndexedDB/idbcursor-advance.htm new file mode 100644 index 000000000..f4ecbc0e5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-advance.htm @@ -0,0 +1,243 @@ + +IDBCursor.advance() + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-continue.htm b/testing/web-platform/tests/IndexedDB/idbcursor-continue.htm new file mode 100644 index 000000000..968cd9cbd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-continue.htm @@ -0,0 +1,240 @@ + +IDBCursor.continue() + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order.htm b/testing/web-platform/tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order.htm new file mode 100644 index 000000000..0d35218b9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order.htm @@ -0,0 +1,382 @@ + + + +IDBCursor.continuePrimaryKey() - Exception Orders + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-direction-index-keyrange.htm b/testing/web-platform/tests/IndexedDB/idbcursor-direction-index-keyrange.htm new file mode 100644 index 000000000..c3f934037 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-direction-index-keyrange.htm @@ -0,0 +1,82 @@ + +IDBCursor direction - index with keyrange + + + + + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-direction-index.htm b/testing/web-platform/tests/IndexedDB/idbcursor-direction-index.htm new file mode 100644 index 000000000..39afcb24d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-direction-index.htm @@ -0,0 +1,81 @@ + +IDBCursor direction - index + + + + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore-keyrange.htm b/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore-keyrange.htm new file mode 100644 index 000000000..2b2bf04bf --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore-keyrange.htm @@ -0,0 +1,77 @@ + +IDBCursor direction - object store with keyrange + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore.htm new file mode 100644 index 000000000..c02355395 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-direction-objectstore.htm @@ -0,0 +1,80 @@ + +IDBCursor direction - object store + + + + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-direction.htm b/testing/web-platform/tests/IndexedDB/idbcursor-direction.htm new file mode 100644 index 000000000..b50eded79 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-direction.htm @@ -0,0 +1,73 @@ + +IDBCursor.direction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-key.htm b/testing/web-platform/tests/IndexedDB/idbcursor-key.htm new file mode 100644 index 000000000..8014c4221 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-key.htm @@ -0,0 +1,57 @@ + +IDBCursor.key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-primarykey.htm b/testing/web-platform/tests/IndexedDB/idbcursor-primarykey.htm new file mode 100644 index 000000000..2fe24ece8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-primarykey.htm @@ -0,0 +1,61 @@ + +IDBCursor.primaryKey + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-reused.htm b/testing/web-platform/tests/IndexedDB/idbcursor-reused.htm new file mode 100644 index 000000000..603041e7c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-reused.htm @@ -0,0 +1,69 @@ + +IDBCursor is reused + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor-source.htm b/testing/web-platform/tests/IndexedDB/idbcursor-source.htm new file mode 100644 index 000000000..7e3746ae7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor-source.htm @@ -0,0 +1,68 @@ + +IDBCursor.source + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index.htm new file mode 100644 index 000000000..0e5c51474 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index.htm @@ -0,0 +1,57 @@ + +IDBCursor.advance() - index - iterate cursor number of times specified by count + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index2.htm new file mode 100644 index 000000000..539c824e6 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index2.htm @@ -0,0 +1,47 @@ + +IDBCursor.advance() - attempt to pass a count parameter that is not a number + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index3.htm new file mode 100644 index 000000000..5adf3f077 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index3.htm @@ -0,0 +1,47 @@ + +IDBCursor.advance() - index - attempt to advance backwards + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index5.htm new file mode 100644 index 000000000..452c0f142 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index5.htm @@ -0,0 +1,55 @@ + +IDBCursor.advance() - index - iterate to the next record + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index6.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index6.htm new file mode 100644 index 000000000..826cb1e1a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index6.htm @@ -0,0 +1,37 @@ + + +IDBCursor.advance() - index - throw TypeError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index7.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index7.htm new file mode 100644 index 000000000..8da5b618d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index7.htm @@ -0,0 +1,39 @@ + + +IDBCursor.advance() - index - throw TransactionInactiveError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index8.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index8.htm new file mode 100644 index 000000000..b5e64d4cd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index8.htm @@ -0,0 +1,38 @@ + + +IDBCursor.advance() - index - throw InvalidStateError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_index9.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index9.htm new file mode 100644 index 000000000..517a573c4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_index9.htm @@ -0,0 +1,37 @@ + + +IDBCursor.advance() - index - throw InvalidStateError caused by object store been deleted + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore.htm new file mode 100644 index 000000000..5ae9a813c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore.htm @@ -0,0 +1,54 @@ + + IDBCursor.advance() - object store - iterate cursor number of times specified by count + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore2.htm new file mode 100644 index 000000000..32478c141 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore2.htm @@ -0,0 +1,40 @@ + + +IDBCursor.advance() - object store - throw TypeError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore3.htm new file mode 100644 index 000000000..1accd6631 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore3.htm @@ -0,0 +1,42 @@ + + +IDBCursor.advance() - object store - throw TransactionInactiveError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore4.htm new file mode 100644 index 000000000..387973169 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore4.htm @@ -0,0 +1,41 @@ + + +IDBCursor.advance() - object store - throw InvalidStateError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore5.htm new file mode 100644 index 000000000..cb0859c63 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_advance_objectstore5.htm @@ -0,0 +1,36 @@ + + +IDBCursor.advance() - object store - throw InvalidStateError caused by object store been deleted + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index.htm new file mode 100644 index 000000000..8b0d079a9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index.htm @@ -0,0 +1,52 @@ + +IDBCursor.continue() - index - iterate to the next record + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index2.htm new file mode 100644 index 000000000..d0eaef3d0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index2.htm @@ -0,0 +1,49 @@ + +IDBCursor.continue() - index - attempt to pass a key parameter that is not a valid key + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index3.htm new file mode 100644 index 000000000..357dc157f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index3.htm @@ -0,0 +1,54 @@ + +IDBCursor.continue() - index - attempt to iterate to the previous record when the direction is set for the next record + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index4.htm new file mode 100644 index 000000000..c5cfd85eb --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index4.htm @@ -0,0 +1,65 @@ + +IDBCursor.continue() - index - attempt to iterate to the next record when the direction is set for the previous record + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index5.htm new file mode 100644 index 000000000..abe0e658b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index5.htm @@ -0,0 +1,64 @@ + +IDBCursor.continue() - index - iterate using 'prevunique' + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index6.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index6.htm new file mode 100644 index 000000000..cf5bd4066 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index6.htm @@ -0,0 +1,64 @@ + +IDBCursor.continue() - index - iterate using nextunique + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index7.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index7.htm new file mode 100644 index 000000000..fed235685 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index7.htm @@ -0,0 +1,38 @@ + + +IDBCursor.continue() - index - throw TransactionInactiveError + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_index8.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index8.htm new file mode 100644 index 000000000..4a574ec90 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_index8.htm @@ -0,0 +1,38 @@ + + +IDBCursor.continue() - index - throw InvalidStateError caused by object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_invalid.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_invalid.htm new file mode 100644 index 000000000..dea07bc91 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_invalid.htm @@ -0,0 +1,54 @@ + +IDBCursor.continue() - attempt to call continue two times + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore.htm new file mode 100644 index 000000000..76750c969 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore.htm @@ -0,0 +1,46 @@ + +IDBCursor.continue() - object store - iterate to the next record + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore2.htm new file mode 100644 index 000000000..14502330b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore2.htm @@ -0,0 +1,40 @@ + +IDBCursor.continue() - object store - attempt to pass a key parameter is not a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore3.htm new file mode 100644 index 000000000..a059b62e5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore3.htm @@ -0,0 +1,40 @@ + +IDBCursor.continue() - object store - attempt to iterate to the previous record when the direction is set for the next record + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore4.htm new file mode 100644 index 000000000..b4819c733 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore4.htm @@ -0,0 +1,57 @@ + +IDBCursor.continue() - object store - attempt to iterate to the next record when the direction is set for the previous record + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore5.htm new file mode 100644 index 000000000..3c1943336 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore5.htm @@ -0,0 +1,42 @@ + + +IDBCursor.continue() - object store - throw TransactionInactiveError + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore6.htm b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore6.htm new file mode 100644 index 000000000..f9d656ebf --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_continue_objectstore6.htm @@ -0,0 +1,37 @@ + + +IDBCursor.continue() - object store - throw InvalidStateError caused by object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_index.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index.htm new file mode 100644 index 000000000..8cddcea99 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index.htm @@ -0,0 +1,69 @@ + +IDBCursor.delete() - index - remove a record from the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_index2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index2.htm new file mode 100644 index 000000000..a5147f754 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index2.htm @@ -0,0 +1,42 @@ + +IDBCursor.delete() - index - attempt to remove a record in a read-only transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_index3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index3.htm new file mode 100644 index 000000000..bb5722ee3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index3.htm @@ -0,0 +1,40 @@ + +IDBCursor.delete() - index - attempt to remove a record in an inactive transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_index4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index4.htm new file mode 100644 index 000000000..9b57bd681 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index4.htm @@ -0,0 +1,38 @@ + + +IDBCursor.delete() - index - throw InvalidStateError caused by object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_index5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index5.htm new file mode 100644 index 000000000..66eacdebe --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_index5.htm @@ -0,0 +1,39 @@ + + +IDBCursor.delete() - index - throw InvalidStateError when the cursor is being iterated + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore.htm new file mode 100644 index 000000000..044a4e571 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore.htm @@ -0,0 +1,65 @@ + +IDBCursor.delete() - object store - remove a record from the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore2.htm new file mode 100644 index 000000000..69521e66b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore2.htm @@ -0,0 +1,40 @@ + +IDBCursor.delete() - object store - attempt to remove a record in a read-only transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore3.htm new file mode 100644 index 000000000..bdb8d93c3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore3.htm @@ -0,0 +1,39 @@ + +IDBCursor.delete() - index - attempt to remove a record in an inactive transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore4.htm new file mode 100644 index 000000000..47bcd8b00 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore4.htm @@ -0,0 +1,37 @@ + + +IDBCursor.delete() - object store - throw InvalidStateError caused by object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore5.htm new file mode 100644 index 000000000..b37e26126 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_delete_objectstore5.htm @@ -0,0 +1,41 @@ + + +IDBCursor.delete() - object store - throw InvalidStateError when the cursor is being iterated + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_iterating.htm b/testing/web-platform/tests/IndexedDB/idbcursor_iterating.htm new file mode 100644 index 000000000..fd3cd0a69 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_iterating.htm @@ -0,0 +1,110 @@ + +IDBCursor.continue() - objectstore - delete next element, and iterate to it + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index.htm b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index.htm new file mode 100644 index 000000000..559cce6db --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index.htm @@ -0,0 +1,53 @@ + +IDBCursor.continue() - index - delete next element, and iterate to it + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index2.htm new file mode 100644 index 000000000..91a838350 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_index2.htm @@ -0,0 +1,53 @@ + +IDBCursor.continue() - index - add next element, and iterate to it + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore.htm new file mode 100644 index 000000000..db66c4db3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore.htm @@ -0,0 +1,51 @@ + +IDBCursor.continue() - objectstore - delete next element, and iterate to it + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore2.htm new file mode 100644 index 000000000..2374a854e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_iterating_objectstore2.htm @@ -0,0 +1,51 @@ + +IDBCursor.continue() - objectstore - add next element, and iterate to it + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index.htm new file mode 100644 index 000000000..5fa1f940a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index.htm @@ -0,0 +1,64 @@ + +IDBCursor.update() - index - modify a record in the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index2.htm new file mode 100644 index 000000000..03f9c2712 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index2.htm @@ -0,0 +1,40 @@ + +IDBCursor.update() - index - attempt to modify a record in a read-only transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index3.htm new file mode 100644 index 000000000..0f7b2a1db --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index3.htm @@ -0,0 +1,41 @@ + +IDBCursor.update() - index - attempt to modify a record in an inactive transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index4.htm new file mode 100644 index 000000000..ee60da0d2 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index4.htm @@ -0,0 +1,39 @@ + + +IDBCursor.update() - index - attempt to modify a record when object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index5.htm new file mode 100644 index 000000000..a31528d16 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index5.htm @@ -0,0 +1,45 @@ + +IDBCursor.update() - index - throw DataCloneError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index6.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index6.htm new file mode 100644 index 000000000..1e51b1354 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index6.htm @@ -0,0 +1,41 @@ + +IDBCursor.update() - index - no argument + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index7.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index7.htm new file mode 100644 index 000000000..1d464fbcd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index7.htm @@ -0,0 +1,41 @@ + +IDBCursor.update() - index - throw DataError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_index8.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_index8.htm new file mode 100644 index 000000000..3b9266dbe --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_index8.htm @@ -0,0 +1,45 @@ + +IDBCursor.update() - index - throw InvalidStateError when the cursor is being iterated + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore.htm new file mode 100644 index 000000000..8aa6a1372 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore.htm @@ -0,0 +1,60 @@ + +IDBCursor.update() - objectstore - modify a record in the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore2.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore2.htm new file mode 100644 index 000000000..65c87bd95 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore2.htm @@ -0,0 +1,38 @@ + +IDBCursor.update() - object store - attempt to modify a record in a read-only transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore3.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore3.htm new file mode 100644 index 000000000..0ce59de29 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore3.htm @@ -0,0 +1,40 @@ + +IDBCursor.update() - object store - attempt to modify a record in an inactive transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore4.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore4.htm new file mode 100644 index 000000000..cbd0b1f92 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore4.htm @@ -0,0 +1,39 @@ + +IDBCursor.update() - index - modify a record in the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore5.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore5.htm new file mode 100644 index 000000000..5dfb82ca1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore5.htm @@ -0,0 +1,41 @@ + + +IDBCursor.update() - object store - attempt to modify a record when object store been deleted + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore6.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore6.htm new file mode 100644 index 000000000..16aa00dfa --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore6.htm @@ -0,0 +1,43 @@ + +IDBCursor.update() - object store - throw DataCloneError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore7.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore7.htm new file mode 100644 index 000000000..b1b736cf0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore7.htm @@ -0,0 +1,39 @@ + +IDBCursor.update() - object store - no argument + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore8.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore8.htm new file mode 100644 index 000000000..f0b8900d4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore8.htm @@ -0,0 +1,39 @@ + +IDBCursor.update() - object store - throw DataError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore9.htm b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore9.htm new file mode 100644 index 000000000..34aa78e6b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbcursor_update_objectstore9.htm @@ -0,0 +1,45 @@ + + +IDBCursor.update() - object store - throw InvalidStateError when the cursor is being iterated + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_close.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_close.htm new file mode 100644 index 000000000..dc3f585a8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_close.htm @@ -0,0 +1,43 @@ + +IDBDatabase.close() - unblock the version change transaction created by an open database request + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_close2.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_close2.htm new file mode 100644 index 000000000..68bafb946 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_close2.htm @@ -0,0 +1,39 @@ + +IDBDatabase.close() - unblock the delete database request + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore-createIndex-emptyname.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore-createIndex-emptyname.htm new file mode 100644 index 000000000..97f860a7a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore-createIndex-emptyname.htm @@ -0,0 +1,45 @@ + + +IDBDatabase.createObjectStore() and IDBObjectStore.createIndex() - both with empty name + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore.htm new file mode 100644 index 000000000..36fe93250 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore.htm @@ -0,0 +1,29 @@ + +IDBDatabase.createObjectStore() - returns an instance of IDBObjectStore + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-1000ends.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-1000ends.htm new file mode 100644 index 000000000..d6e4a48ed --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-1000ends.htm @@ -0,0 +1,37 @@ + +IDBDatabase.createObjectStore() - create 1000 object stores, add one item and delete + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-emptyname.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-emptyname.htm new file mode 100644 index 000000000..cee4754a8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore10-emptyname.htm @@ -0,0 +1,38 @@ + + +IDBDatabase.createObjectStore() - empty name + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore11.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore11.htm new file mode 100644 index 000000000..ae78d46ba --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore11.htm @@ -0,0 +1,25 @@ + + +IDBDatabase.createObjectStore() - attempting to create an existing object store with a different keyPath throw ConstraintError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore2.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore2.htm new file mode 100644 index 000000000..78f06ff9b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore2.htm @@ -0,0 +1,33 @@ + +IDBDatabase.createObjectStore() - object store 'name' and 'keyPath' properties are correctly set + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore3.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore3.htm new file mode 100644 index 000000000..ccf4a2b5f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore3.htm @@ -0,0 +1,24 @@ + +IDBDatabase.createObjectStore() - attempt to create an object store outside of a version change transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore4.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore4.htm new file mode 100644 index 000000000..07d787bd9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore4.htm @@ -0,0 +1,27 @@ + +IDBDatabase.createObjectStore() - attempt to create an object store that already exists + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore5.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore5.htm new file mode 100644 index 000000000..7e205096e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore5.htm @@ -0,0 +1,33 @@ + +IDBDatabase.createObjectStore() - object store's name appears in database's list + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore6.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore6.htm new file mode 100644 index 000000000..c1200c5f9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore6.htm @@ -0,0 +1,30 @@ + +IDBDatabase.createObjectStore() - attempt to create an object store with an invalid key path + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore7.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore7.htm new file mode 100644 index 000000000..358baeeec --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore7.htm @@ -0,0 +1,25 @@ + +IDBDatabase.createObjectStore() - create an object store with an unknown optional parameter + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore8-parameters.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore8-parameters.htm new file mode 100644 index 000000000..7cc69765b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore8-parameters.htm @@ -0,0 +1,39 @@ + + +IDBObjectStoreParameters + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore9-invalidparameters.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore9-invalidparameters.htm new file mode 100644 index 000000000..0a6dc03a6 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_createObjectStore9-invalidparameters.htm @@ -0,0 +1,29 @@ + + +createObjectStore: Invalid optionalParameters + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore.htm new file mode 100644 index 000000000..b69570cc0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore.htm @@ -0,0 +1,25 @@ + +IDBDatabase.deleteObjectStore() - object store's name is removed from database's list + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore2.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore2.htm new file mode 100644 index 000000000..3c1abe632 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore2.htm @@ -0,0 +1,31 @@ + +IDBDatabase.deleteObjectStore() - attempt to remove an object store outside of a version change transaction + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore3.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore3.htm new file mode 100644 index 000000000..cae00f9d2 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore3.htm @@ -0,0 +1,23 @@ + +IDBDatabase.deleteObjectStore() - attempt to remove an object store that does not exist + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm new file mode 100644 index 000000000..1cb6ff1ac --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm @@ -0,0 +1,42 @@ + + +IDBDatabase.deleteObjectStore() - the object store is not reused + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_transaction.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction.htm new file mode 100644 index 000000000..94de8b433 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction.htm @@ -0,0 +1,24 @@ + +IDBDatabase.transaction() - attempt to open a transaction with invalid scope + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_transaction2.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction2.htm new file mode 100644 index 000000000..310014bc5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction2.htm @@ -0,0 +1,27 @@ + +IDBDatabase.transaction() - opening a transaction defaults to a read-only mode + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_transaction3.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction3.htm new file mode 100644 index 000000000..9b353c710 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction3.htm @@ -0,0 +1,28 @@ + +IDBDatabase.transaction() - attempt to open a transaction from closed database connection + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_transaction4.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction4.htm new file mode 100644 index 000000000..515c499b0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction4.htm @@ -0,0 +1,26 @@ + +IDBDatabase.transaction() - attempt to open a transaction with invalid mode + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbdatabase_transaction5.htm b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction5.htm new file mode 100644 index 000000000..b6b45ab9f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbdatabase_transaction5.htm @@ -0,0 +1,22 @@ + + +IDBDatabase.transaction() - If storeNames is an empty list, the implementation must throw a DOMException of type InvalidAccessError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_cmp.htm b/testing/web-platform/tests/IndexedDB/idbfactory_cmp.htm new file mode 100644 index 000000000..7b301ece4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_cmp.htm @@ -0,0 +1,21 @@ + + +IDBFactory.cmp() - compared keys return correct value + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_cmp2.htm b/testing/web-platform/tests/IndexedDB/idbfactory_cmp2.htm new file mode 100644 index 000000000..446bb465c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_cmp2.htm @@ -0,0 +1,41 @@ + + +IDBFactory.cmp() - invalid key + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_cmp3.htm b/testing/web-platform/tests/IndexedDB/idbfactory_cmp3.htm new file mode 100644 index 000000000..749fd7b86 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_cmp3.htm @@ -0,0 +1,27 @@ + + +IDBFactory.cmp() - compared keys in different types + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_cmp4.htm b/testing/web-platform/tests/IndexedDB/idbfactory_cmp4.htm new file mode 100644 index 000000000..757e7c239 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_cmp4.htm @@ -0,0 +1,40 @@ + + +IDBFactory.cmp() - comparison of binary keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase.htm b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase.htm new file mode 100644 index 000000000..fd7a908d3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase.htm @@ -0,0 +1,25 @@ + +IDBFactory.deleteDatabase() - request has no source + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase2.htm b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase2.htm new file mode 100644 index 000000000..0c7c73a28 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase2.htm @@ -0,0 +1,27 @@ + +IDBFactory.deleteDatabase() - result of the request is set to undefined + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase3.htm b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase3.htm new file mode 100644 index 000000000..e1cab41a5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase3.htm @@ -0,0 +1,33 @@ + +IDBFactory.deleteDatabase() - success event + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase4.htm b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase4.htm new file mode 100644 index 000000000..3a4e9944d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_deleteDatabase4.htm @@ -0,0 +1,58 @@ + +Test events opening a second database when one connection is open already + + + + + +
+ + + diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open.htm new file mode 100644 index 000000000..bca2cfdc8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open.htm @@ -0,0 +1,18 @@ + +IDBFactory.open() - request has no source + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open10.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open10.htm new file mode 100644 index 000000000..598046ff9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open10.htm @@ -0,0 +1,91 @@ + +IDBFactory.open() - error in upgradeneeded resets db + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open11.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open11.htm new file mode 100644 index 000000000..66ea9d525 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open11.htm @@ -0,0 +1,60 @@ + +IDBFactory.open() - second open's transaction is available to get objectStores + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open12.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open12.htm new file mode 100644 index 000000000..763c48051 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open12.htm @@ -0,0 +1,50 @@ + +IDBFactory.open() - upgradeneeded gets VersionChangeEvent + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm new file mode 100644 index 000000000..e4d54ee0a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm @@ -0,0 +1,20 @@ + +IDBFactory.open() - database 'name' and 'version' are correctly set + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open3.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open3.htm new file mode 100644 index 000000000..9ec6db5ab --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open3.htm @@ -0,0 +1,27 @@ + +IDBFactory.open() - no version opens current database + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open4.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open4.htm new file mode 100644 index 000000000..15ca666b8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open4.htm @@ -0,0 +1,20 @@ + +IDBFactory.open() - new database has default version + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open5.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open5.htm new file mode 100644 index 000000000..d9460bb7e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open5.htm @@ -0,0 +1,18 @@ + +IDBFactory.open() - new database is empty + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open6.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open6.htm new file mode 100644 index 000000000..bbb8ac02d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open6.htm @@ -0,0 +1,34 @@ + +IDBFactory.open() - open database with a lower version than current + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open7.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open7.htm new file mode 100644 index 000000000..bd168f755 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open7.htm @@ -0,0 +1,38 @@ + +IDBFactory.open() - open database with a higher version than current + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open8.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open8.htm new file mode 100644 index 000000000..7e2ac93ec --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open8.htm @@ -0,0 +1,27 @@ + +IDBFactory.open() - error in version change transaction aborts open + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open9.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open9.htm new file mode 100644 index 000000000..98b1ddeef --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open9.htm @@ -0,0 +1,71 @@ + +IDBFactory.open() - errors in version argument + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex-multientry-arraykeypath.htm b/testing/web-platform/tests/IndexedDB/idbindex-multientry-arraykeypath.htm new file mode 100644 index 000000000..3e584a6c4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-multientry-arraykeypath.htm @@ -0,0 +1,23 @@ + + +IDBIndex.multiEntry: array keyPath with multiEntry + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex-multientry-big.htm b/testing/web-platform/tests/IndexedDB/idbindex-multientry-big.htm new file mode 100644 index 000000000..4f9df36e2 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-multientry-big.htm @@ -0,0 +1,58 @@ + + +IDBIndex.multiEntry - a 1000 entry multiEntry array + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex-multientry.htm b/testing/web-platform/tests/IndexedDB/idbindex-multientry.htm new file mode 100644 index 000000000..5077f4846 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-multientry.htm @@ -0,0 +1,53 @@ + + +IDBIndex.multiEntry - adding keys + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex-rename-abort.html b/testing/web-platform/tests/IndexedDB/idbindex-rename-abort.html new file mode 100644 index 000000000..f8dca5202 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-rename-abort.html @@ -0,0 +1,110 @@ + +IndexedDB: index renaming support in aborted transactions + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbindex-rename-errors.html b/testing/web-platform/tests/IndexedDB/idbindex-rename-errors.html new file mode 100644 index 000000000..1f50f36c6 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-rename-errors.html @@ -0,0 +1,130 @@ + +IndexedDB: index renaming error handling + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbindex-rename.html b/testing/web-platform/tests/IndexedDB/idbindex-rename.html new file mode 100644 index 000000000..370b83e53 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex-rename.html @@ -0,0 +1,299 @@ + + +IndexedDB: index renaming support + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_count.htm b/testing/web-platform/tests/IndexedDB/idbindex_count.htm new file mode 100644 index 000000000..1b84ef9b7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_count.htm @@ -0,0 +1,37 @@ + + +IDBIndex.count() - returns the number of records in the index + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_count2.htm b/testing/web-platform/tests/IndexedDB/idbindex_count2.htm new file mode 100644 index 000000000..1494fe116 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_count2.htm @@ -0,0 +1,37 @@ + + +IDBIndex.count() - returns the number of records that have keys within the range + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_count3.htm b/testing/web-platform/tests/IndexedDB/idbindex_count3.htm new file mode 100644 index 000000000..7fb34347c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_count3.htm @@ -0,0 +1,28 @@ + + +IDBIndex.count() - returns the number of records that have keys with the key + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_count4.htm b/testing/web-platform/tests/IndexedDB/idbindex_count4.htm new file mode 100644 index 000000000..addd99260 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_count4.htm @@ -0,0 +1,37 @@ + + +IDBIndex.count() - throw DataError when using invalid key + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get.htm b/testing/web-platform/tests/IndexedDB/idbindex_get.htm new file mode 100644 index 000000000..835cbefd2 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get.htm @@ -0,0 +1,36 @@ + + +IDBIndex.get() - returns the record + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get2.htm b/testing/web-platform/tests/IndexedDB/idbindex_get2.htm new file mode 100644 index 000000000..52b1d371e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get2.htm @@ -0,0 +1,39 @@ + + +IDBIndex.get() - returns the record where the index contains duplicate values + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get3.htm b/testing/web-platform/tests/IndexedDB/idbindex_get3.htm new file mode 100644 index 000000000..d0f900789 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get3.htm @@ -0,0 +1,27 @@ + + +IDBIndex.get() - attempt to retrieve a record that doesn't exist + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get4.htm b/testing/web-platform/tests/IndexedDB/idbindex_get4.htm new file mode 100644 index 000000000..bd0cc5ec8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get4.htm @@ -0,0 +1,39 @@ + + +IDBIndex.get() - returns the record with the first key in the range + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get5.htm b/testing/web-platform/tests/IndexedDB/idbindex_get5.htm new file mode 100644 index 000000000..65e2623cd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get5.htm @@ -0,0 +1,26 @@ + + +IDBIndex.get() - throw DataError when using invalid key + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get6.htm b/testing/web-platform/tests/IndexedDB/idbindex_get6.htm new file mode 100644 index 000000000..c7f6b92fe --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get6.htm @@ -0,0 +1,29 @@ + + +IDBIndex.get() - throw InvalidStateError when the index is deleted + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get7.htm b/testing/web-platform/tests/IndexedDB/idbindex_get7.htm new file mode 100644 index 000000000..e28fed4c5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get7.htm @@ -0,0 +1,32 @@ + + +IDBIndex.get() - throw TransactionInactiveError on aborted transaction + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_get8.htm b/testing/web-platform/tests/IndexedDB/idbindex_get8.htm new file mode 100644 index 000000000..ef67c6d6d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_get8.htm @@ -0,0 +1,27 @@ + + +IDBIndex.get() - throw InvalidStateError on index deleted by aborted upgrade + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getAll.html b/testing/web-platform/tests/IndexedDB/idbindex_getAll.html new file mode 100644 index 000000000..507b6c9f8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getAll.html @@ -0,0 +1,232 @@ + +IndexedDB: Test IDBIndex.getAll. + + + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getAllKeys.html b/testing/web-platform/tests/IndexedDB/idbindex_getAllKeys.html new file mode 100644 index 000000000..7653a5152 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getAllKeys.html @@ -0,0 +1,207 @@ + +IndexedDB: Test IDBIndex.getAllKeys. + + + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey.htm new file mode 100644 index 000000000..536f2fd39 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey.htm @@ -0,0 +1,38 @@ + + +IDBIndex.getKey() - returns the record's primary key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey2.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey2.htm new file mode 100644 index 000000000..9e8673242 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey2.htm @@ -0,0 +1,39 @@ + + +IDBIndex.getKey() - returns the record's primary key where the index contains duplicate values + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey3.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey3.htm new file mode 100644 index 000000000..238107ccc --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey3.htm @@ -0,0 +1,28 @@ + + +IDBIndex.getKey() - attempt to retrieve the primary key of a record that doesn't exist + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey4.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey4.htm new file mode 100644 index 000000000..2002a5fe1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey4.htm @@ -0,0 +1,38 @@ + + +IDBIndex.getKey() - returns the key of the first record within the range + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey5.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey5.htm new file mode 100644 index 000000000..96af868be --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey5.htm @@ -0,0 +1,26 @@ + + +IDBIndex.getKey() - throw DataError when using invalid key + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey6.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey6.htm new file mode 100644 index 000000000..6e9680da9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey6.htm @@ -0,0 +1,29 @@ + + +IDBIndex.getKey() - throw InvalidStateError when the index is deleted + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm new file mode 100644 index 000000000..c949d39b3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey7.htm @@ -0,0 +1,32 @@ + + +IDBIndex.getKey() - throw TransactionInactiveError on aborted transaction + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_getKey8.htm b/testing/web-platform/tests/IndexedDB/idbindex_getKey8.htm new file mode 100644 index 000000000..e46f7bc36 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_getKey8.htm @@ -0,0 +1,27 @@ + + +IDBIndex.getKey() - throw InvalidStateError on index deleted by aborted upgrade + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_indexNames.htm b/testing/web-platform/tests/IndexedDB/idbindex_indexNames.htm new file mode 100644 index 000000000..3099b45e9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_indexNames.htm @@ -0,0 +1,34 @@ + + +IDBIndex.getKey() - returns the record's primary key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openCursor.htm b/testing/web-platform/tests/IndexedDB/idbindex_openCursor.htm new file mode 100644 index 000000000..0efff9325 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openCursor.htm @@ -0,0 +1,29 @@ + + +IDBIndex.openCursor() - throw InvalidStateError when the index is deleted + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm b/testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm new file mode 100644 index 000000000..7ce967e0b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openCursor2.htm @@ -0,0 +1,32 @@ + + +IDBIndex.openCursor() - throw TransactionInactiveError on aborted transaction + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openCursor3.htm b/testing/web-platform/tests/IndexedDB/idbindex_openCursor3.htm new file mode 100644 index 000000000..fea479e9c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openCursor3.htm @@ -0,0 +1,27 @@ + + +IDBIndex.openCursor() - throw InvalidStateError on index deleted by aborted upgrade + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor.htm b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor.htm new file mode 100644 index 000000000..e15880291 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor.htm @@ -0,0 +1,28 @@ + + +IDBIndex.openKeyCursor() - throw DataError when using a invalid key + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor2.htm b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor2.htm new file mode 100644 index 000000000..d8354c2fd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor2.htm @@ -0,0 +1,29 @@ + + +IDBIndex.openKeyCursor() - throw InvalidStateError when the index is deleted + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm new file mode 100644 index 000000000..f009cef49 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor3.htm @@ -0,0 +1,32 @@ + + +IDBIndex.openKeyCursor() - throw TransactionInactiveError on aborted transaction + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor4.htm b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor4.htm new file mode 100644 index 000000000..bf134dff1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbindex_openKeyCursor4.htm @@ -0,0 +1,27 @@ + + +IDBIndex.openKeyCursor() - throw InvalidStateError on index deleted by aborted upgrade + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbkeyrange-includes.htm b/testing/web-platform/tests/IndexedDB/idbkeyrange-includes.htm new file mode 100644 index 000000000..6a0562746 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbkeyrange-includes.htm @@ -0,0 +1,61 @@ + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbkeyrange.htm b/testing/web-platform/tests/IndexedDB/idbkeyrange.htm new file mode 100644 index 000000000..dd6e5f7e5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbkeyrange.htm @@ -0,0 +1,67 @@ + + +IDBKeyRange Tests + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbkeyrange_incorrect.htm b/testing/web-platform/tests/IndexedDB/idbkeyrange_incorrect.htm new file mode 100644 index 000000000..0449ca807 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbkeyrange_incorrect.htm @@ -0,0 +1,92 @@ + + + + + + IDBKeyRange Tests - Incorrect + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-abort.html b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-abort.html new file mode 100644 index 000000000..b59117a80 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-abort.html @@ -0,0 +1,120 @@ + +IndexedDB: object store renaming support in aborted transactions + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-errors.html b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-errors.html new file mode 100644 index 000000000..8e603baec --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-errors.html @@ -0,0 +1,118 @@ + +IndexedDB: object store renaming error handling + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-store.html b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-store.html new file mode 100644 index 000000000..d07a46487 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore-rename-store.html @@ -0,0 +1,367 @@ + + +IndexedDB: object store renaming support + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add.htm new file mode 100644 index 000000000..f091d1faf --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.add() - add with an inline key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add10.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add10.htm new file mode 100644 index 000000000..f2bf44750 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add10.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.add() - Attempt to call 'add' without an key parameter when the object store uses out-of-line keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add11.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add11.htm new file mode 100644 index 000000000..99ff14c31 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add11.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.add() - Attempt to add a record where the record's key does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add12.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add12.htm new file mode 100644 index 000000000..d679af08b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add12.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.add() - Attempt to add a record where the record's in-line key is not defined + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add13.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add13.htm new file mode 100644 index 000000000..943a6cf9b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add13.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.add() - Attempt to add a record where the out of line key provided does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add14.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add14.htm new file mode 100644 index 000000000..5bac57cb7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add14.htm @@ -0,0 +1,32 @@ + + +IDBObjectStore.add() - Add a record where a value being indexed does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add15.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add15.htm new file mode 100644 index 000000000..268ed72e9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add15.htm @@ -0,0 +1,31 @@ + + +IDBObjectStore.add() - If the transaction this IDBObjectStore belongs to has its mode set to readonly, throw ReadOnlyError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add16.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add16.htm new file mode 100644 index 000000000..391b94458 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add16.htm @@ -0,0 +1,25 @@ + + +IDBObjectStore.add() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add2.htm new file mode 100644 index 000000000..70c055445 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add2.htm @@ -0,0 +1,36 @@ + + +IDBObjectStore.add() - add with an out-of-line key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add3.htm new file mode 100644 index 000000000..ac397372d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add3.htm @@ -0,0 +1,39 @@ + + +IDBObjectStore.add() - record with same key already exists + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add4.htm new file mode 100644 index 000000000..c4b875cd4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add4.htm @@ -0,0 +1,40 @@ + + +IDBObjectStore.add() - add where an index has unique:true specified + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add5.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add5.htm new file mode 100644 index 000000000..1c1cd1fb2 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add5.htm @@ -0,0 +1,34 @@ + + +IDBObjectStore.add() - object store's key path is an object attribute + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add6.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add6.htm new file mode 100644 index 000000000..c6f1910a3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add6.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.add() - autoIncrement and inline keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add7.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add7.htm new file mode 100644 index 000000000..1b2a6dac3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add7.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.add() - autoIncrement and out-of-line keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add8.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add8.htm new file mode 100644 index 000000000..b3266fdc0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add8.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.add() - object store has autoIncrement:true and the key path is an object attribute + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_add9.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_add9.htm new file mode 100644 index 000000000..6e027a11d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_add9.htm @@ -0,0 +1,27 @@ + + +IDBObjectStore.add() - Attempt to add a record that does not meet the constraints of an object store's inline key requirements + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_clear.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear.htm new file mode 100644 index 000000000..d9c3fb2a1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear.htm @@ -0,0 +1,41 @@ + + +IDBObjectStore.clear() - Verify clear removes all records + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_clear2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear2.htm new file mode 100644 index 000000000..ac1fdff4c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear2.htm @@ -0,0 +1,43 @@ + + +IDBObjectStore.clear() - clear removes all records from an index + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_clear3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear3.htm new file mode 100644 index 000000000..fc0fa4d8d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear3.htm @@ -0,0 +1,36 @@ + + +IDBObjectStore.clear() - If the transaction this IDBObjectStore belongs to has its mode set to readonly, throw ReadOnlyError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_clear4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear4.htm new file mode 100644 index 000000000..4e08f6738 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_clear4.htm @@ -0,0 +1,25 @@ + + +IDBObjectStore.clear() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_count.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_count.htm new file mode 100644 index 000000000..a54d16e43 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_count.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.count() - returns the number of records in the object store + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_count2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_count2.htm new file mode 100644 index 000000000..b92715a2d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_count2.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.count() - returns the number of records that have keys within the range + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_count3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_count3.htm new file mode 100644 index 000000000..970b87a3d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_count3.htm @@ -0,0 +1,31 @@ + + +IDBObjectStore.count() - returns the number of records that have keys with the key + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_count4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_count4.htm new file mode 100644 index 000000000..50dd6fe54 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_count4.htm @@ -0,0 +1,25 @@ + + +IDBObjectStore.count() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex.htm new file mode 100644 index 000000000..8f0327c1a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex.htm @@ -0,0 +1,30 @@ + + +IDBObjectStore.createIndex() - returns an IDBIndex and the properties are set correctly + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex10.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex10.htm new file mode 100644 index 000000000..757296253 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex10.htm @@ -0,0 +1,24 @@ + + +IDBDatabase.createIndex() - If an index with the name name already exists in this object store, the implementation must throw a DOMException of type ConstraintError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex11.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex11.htm new file mode 100644 index 000000000..7da1169e4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex11.htm @@ -0,0 +1,23 @@ + + +IDBDatabase.createIndex() - If keyPath is not a valid key path, the implementation must throw a DOMException of type SyntaxError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex12.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex12.htm new file mode 100644 index 000000000..18296b4ad --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex12.htm @@ -0,0 +1,31 @@ + + +IDBDatabase.createIndex() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex13.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex13.htm new file mode 100644 index 000000000..fb70cc72b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex13.htm @@ -0,0 +1,31 @@ + + +IDBDatabase.createIndex() - Operate out versionchange throw InvalidStateError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex14-exception_order.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex14-exception_order.htm new file mode 100644 index 000000000..a0ec288cb --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex14-exception_order.htm @@ -0,0 +1,89 @@ + +IndexedDB: Exception Order of IDBObjectStore.createIndex() + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex2.htm new file mode 100644 index 000000000..9dc1686b1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex2.htm @@ -0,0 +1,41 @@ + + +IDBObjectStore.createIndex() - attempt to create an index that requires unique values on an object store already contains duplicates + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex3-usable-right-away.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex3-usable-right-away.htm new file mode 100644 index 000000000..f4b9b984f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex3-usable-right-away.htm @@ -0,0 +1,38 @@ + + +IDBObjectStore.createIndex() - the index is usable right after being made + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex4-deleteIndex-event_order.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex4-deleteIndex-event_order.htm new file mode 100644 index 000000000..228dfc457 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex4-deleteIndex-event_order.htm @@ -0,0 +1,66 @@ + + +IDBObjectStore.createIndex() - Event ordering for a later deleted index + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex5-emptykeypath.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex5-emptykeypath.htm new file mode 100644 index 000000000..29fadc00e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex5-emptykeypath.htm @@ -0,0 +1,38 @@ + + +IDBObjectStore.createIndex() - empty keyPath + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex6-event_order.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex6-event_order.htm new file mode 100644 index 000000000..3dcb7330a --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex6-event_order.htm @@ -0,0 +1,75 @@ + + +IDBObjectStore.createIndex() - event order when unique constraint is triggered + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex7-event_order.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex7-event_order.htm new file mode 100644 index 000000000..f564f6611 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex7-event_order.htm @@ -0,0 +1,80 @@ + + +IDBObjectStore.createIndex() - Event ordering for ConstraintError on request + + + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.htm new file mode 100644 index 000000000..6174523e4 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.htm @@ -0,0 +1,54 @@ + + +IDBObjectStore.createIndex() - index can be valid keys + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex9-emptyname.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex9-emptyname.htm new file mode 100644 index 000000000..3d04357c9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_createIndex9-emptyname.htm @@ -0,0 +1,41 @@ + + +IDBObjectStore.createIndex() - empty name + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete.htm new file mode 100644 index 000000000..337289296 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete.htm @@ -0,0 +1,46 @@ + + +IDBObjectStore.delete() - delete removes record (inline keys) + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete2.htm new file mode 100644 index 000000000..f7e468460 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete2.htm @@ -0,0 +1,27 @@ + + +IDBObjectStore.delete() - key doesn't match any records + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete3.htm new file mode 100644 index 000000000..b72b1072d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete3.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.delete() - object store's key path is an object attribute + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete4.htm new file mode 100644 index 000000000..3d36b7962 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete4.htm @@ -0,0 +1,48 @@ + + +IDBObjectStore.delete() - delete removes record (out-of-line keys) + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete5.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete5.htm new file mode 100644 index 000000000..9e8ac80a1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete5.htm @@ -0,0 +1,32 @@ + +IDBObjectStore.delete() - removes all of the records in the range + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete6.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete6.htm new file mode 100644 index 000000000..01d54dee9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete6.htm @@ -0,0 +1,36 @@ + + +IDBObjectStore.delete() - If the transaction this IDBObjectStore belongs to has its mode set to readonly, throw ReadOnlyError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_delete7.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete7.htm new file mode 100644 index 000000000..98831c5da --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_delete7.htm @@ -0,0 +1,27 @@ + + +IDBObjectStore.delete() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_deleteIndex.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_deleteIndex.htm new file mode 100644 index 000000000..1e0fb2976 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_deleteIndex.htm @@ -0,0 +1,43 @@ + + +IDBObjectStore.deleteIndex() - removes the index + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm new file mode 100644 index 000000000..1d9421ce0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_deleted.htm @@ -0,0 +1,49 @@ + + +Attempting to use deleted IDBObjectStore + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get.htm new file mode 100644 index 000000000..99aff78d5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.get() - key is a number + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get2.htm new file mode 100644 index 000000000..dfbfea17c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get2.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.get() - key is a string + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get3.htm new file mode 100644 index 000000000..b093e5357 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get3.htm @@ -0,0 +1,34 @@ + + +IDBObjectStore.get() - key is a Date + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get4.htm new file mode 100644 index 000000000..7853697a1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get4.htm @@ -0,0 +1,27 @@ + + +IDBObjectStore.get() - attempt to retrieve a record that doesn't exist + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get5.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get5.htm new file mode 100644 index 000000000..59b0ede64 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get5.htm @@ -0,0 +1,31 @@ + +IDBObjectStore.get() - returns the record with the first key in the range + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get6.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get6.htm new file mode 100644 index 000000000..33381a684 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get6.htm @@ -0,0 +1,30 @@ + + +IDBObjectStore.get() - throw TransactionInactiveError on aborted transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_get7.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_get7.htm new file mode 100644 index 000000000..570441b66 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_get7.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.get() - throw DataError when using invalid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_getAll.html b/testing/web-platform/tests/IndexedDB/idbobjectstore_getAll.html new file mode 100644 index 000000000..f81e4caf3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_getAll.html @@ -0,0 +1,174 @@ + +IndexedDB: Test IDBObjectStore.getAll. + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_getAllKeys.html b/testing/web-platform/tests/IndexedDB/idbobjectstore_getAllKeys.html new file mode 100644 index 000000000..f4d317d43 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_getAllKeys.html @@ -0,0 +1,167 @@ + +IndexedDB: Test IDBObjectStore.getAllKeys. + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_index.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_index.htm new file mode 100644 index 000000000..5da58ecc3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_index.htm @@ -0,0 +1,34 @@ + + +IDBObjectStore.index() - returns an index + + + + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor.htm new file mode 100644 index 000000000..c54760a7c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor.htm @@ -0,0 +1,42 @@ + +IDBObjectStore.openCursor() - iterate through 100 objects + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor_invalid.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor_invalid.htm new file mode 100644 index 000000000..698e7998b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_openCursor_invalid.htm @@ -0,0 +1,50 @@ + +IDBObjectStore.openCursor() - invalid + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_openKeyCursor.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_openKeyCursor.htm new file mode 100644 index 000000000..9dc547c3f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_openKeyCursor.htm @@ -0,0 +1,139 @@ + +IDBObjectStore.openKeyCursor() + + + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put.htm new file mode 100644 index 000000000..6a0fed4b7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put.htm @@ -0,0 +1,35 @@ + + +IDBObjectStore.put() - put with an inline key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put10.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put10.htm new file mode 100644 index 000000000..d0de11c3e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put10.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.put() - Attempt to call 'put' without an key parameter when the object store uses out-of-line keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put11.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put11.htm new file mode 100644 index 000000000..9a13757ef --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put11.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.put() - Attempt to put a record where the record's key does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put12.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put12.htm new file mode 100644 index 000000000..24970dff0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put12.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.put() - Attempt to put a record where the record's in-line key is not defined + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put13.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put13.htm new file mode 100644 index 000000000..870c8e4a7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put13.htm @@ -0,0 +1,29 @@ + + +IDBObjectStore.put() - Attempt to put a record where the out of line key provided does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put14.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put14.htm new file mode 100644 index 000000000..c68969645 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put14.htm @@ -0,0 +1,32 @@ + + +IDBObjectStore.put() - Put a record where a value being indexed does not meet the constraints of a valid key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put15.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put15.htm new file mode 100644 index 000000000..cf2c35435 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put15.htm @@ -0,0 +1,31 @@ + + +IDBObjectStore.put() - If the transaction this IDBObjectStore belongs to has its mode set to readonly, throw ReadOnlyError + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put16.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put16.htm new file mode 100644 index 000000000..4818dd25d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put16.htm @@ -0,0 +1,25 @@ + + +IDBObjectStore.put() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError + + + + + +
+ diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put2.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put2.htm new file mode 100644 index 000000000..3b9fc30a8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put2.htm @@ -0,0 +1,36 @@ + + +IDBObjectStore.put() - put with an out-of-line key + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put3.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put3.htm new file mode 100644 index 000000000..79097a283 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put3.htm @@ -0,0 +1,48 @@ + + +IDBObjectStore.put() - record with same key already exists + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put4.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put4.htm new file mode 100644 index 000000000..c1335b27d --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put4.htm @@ -0,0 +1,40 @@ + + +IDBObjectStore.put() - put where an index has unique:true specified + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put5.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put5.htm new file mode 100644 index 000000000..a4d9abeff --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put5.htm @@ -0,0 +1,34 @@ + + +IDBObjectStore.put() - object store's key path is an object attribute + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put6.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put6.htm new file mode 100644 index 000000000..bcf7e7d19 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put6.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.put() - autoIncrement and inline keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put7.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put7.htm new file mode 100644 index 000000000..6765b0a84 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put7.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.put() - autoIncrement and out-of-line keys + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put8.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put8.htm new file mode 100644 index 000000000..3bf284eac --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put8.htm @@ -0,0 +1,47 @@ + + +IDBObjectStore.put() - object store has autoIncrement:true and the key path is an object attribute + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbobjectstore_put9.htm b/testing/web-platform/tests/IndexedDB/idbobjectstore_put9.htm new file mode 100644 index 000000000..6e50a0b29 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbobjectstore_put9.htm @@ -0,0 +1,27 @@ + + +IDBObjectStore.put() - Attempt to put a record that does not meet the constraints of an object store's inline key requirements + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbtransaction-oncomplete.htm b/testing/web-platform/tests/IndexedDB/idbtransaction-oncomplete.htm new file mode 100644 index 000000000..7c295c7c1 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbtransaction-oncomplete.htm @@ -0,0 +1,53 @@ + +IDBTransaction - complete event + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbtransaction.htm b/testing/web-platform/tests/IndexedDB/idbtransaction.htm new file mode 100644 index 000000000..8a3484511 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbtransaction.htm @@ -0,0 +1,46 @@ + +IDBTransaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbtransaction_abort.htm b/testing/web-platform/tests/IndexedDB/idbtransaction_abort.htm new file mode 100644 index 000000000..1f37bb401 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbtransaction_abort.htm @@ -0,0 +1,41 @@ + + +IDBTransaction - abort + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/idbtransaction_objectStoreNames.html b/testing/web-platform/tests/IndexedDB/idbtransaction_objectStoreNames.html new file mode 100644 index 000000000..7f6aa3518 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbtransaction_objectStoreNames.html @@ -0,0 +1,164 @@ + +IndexedDB: IDBTransaction.objectStoreNames attribute + + + + diff --git a/testing/web-platform/tests/IndexedDB/idbversionchangeevent.htm b/testing/web-platform/tests/IndexedDB/idbversionchangeevent.htm new file mode 100644 index 000000000..866a8b2eb --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbversionchangeevent.htm @@ -0,0 +1,66 @@ + +IDBVersionChangeEvent fired in upgradeneeded, versionchange and deleteDatabase + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/idbworker.js b/testing/web-platform/tests/IndexedDB/idbworker.js new file mode 100644 index 000000000..359f6fb69 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbworker.js @@ -0,0 +1,34 @@ +var db + +self.addEventListener('message', MessageHandler, false) + +function MessageHandler(e) +{ + var open_rq, idb = self.indexedDB || self.msIndexedDB || self.webkitIndexedDB || self.mozIndexedDB + + if (!idb) + { + self.postMessage(false) + return + } + else + self.postMessage(true) + + open_rq = idb.open("webworker101", 1) + + open_rq.onupgradeneeded = function(e) { + db = e.target.result + db.createObjectStore("store") + .add("test", 1) + } + open_rq.onsuccess = function(e) { + db = e.target.result + db.onerror = function() { self.postMessage("db.error") } + db.transaction("store").objectStore("store").get(1).onsuccess = function(e) { + self.postMessage(e.target.result) + db.close() + } + } + open_rq.onerror = function() { self.postMessage("open.error") } + open_rq.onblocked = function() { self.postMessage("open.blocked") } +} diff --git a/testing/web-platform/tests/IndexedDB/index_sort_order.htm b/testing/web-platform/tests/IndexedDB/index_sort_order.htm new file mode 100644 index 000000000..6249c4204 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/index_sort_order.htm @@ -0,0 +1,51 @@ + + +Verify key sort order in an index is 'number < Date < DOMString' + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/interfaces.html b/testing/web-platform/tests/IndexedDB/interfaces.html new file mode 100644 index 000000000..9c2919094 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/interfaces.html @@ -0,0 +1,50 @@ + + +IndexedDB IDL tests + + + + + +

IndexedDB IDL tests

+
+ + diff --git a/testing/web-platform/tests/IndexedDB/interfaces.idl b/testing/web-platform/tests/IndexedDB/interfaces.idl new file mode 100644 index 000000000..f1682965c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/interfaces.idl @@ -0,0 +1,156 @@ +enum IDBTransactionMode { + "readonly", + "readwrite", + "versionchange" +}; + +enum IDBRequestReadyState { + "pending", + "done" +}; + +[Exposed=(Window,Worker)] +interface IDBKeyRange { + readonly attribute any lower; + readonly attribute any upper; + readonly attribute boolean lowerOpen; + readonly attribute boolean upperOpen; + static IDBKeyRange only (any value); + static IDBKeyRange lowerBound (any lower, optional boolean open = false); + static IDBKeyRange upperBound (any upper, optional boolean open = false); + static IDBKeyRange bound (any lower, any upper, optional boolean lowerOpen = false, optional boolean upperOpen = false); +}; + +enum IDBCursorDirection { + "next", + "nextunique", + "prev", + "prevunique" +}; + +dictionary IDBObjectStoreParameters { + (DOMString or sequence)? keyPath = null; + boolean autoIncrement = false; +}; + +dictionary IDBIndexParameters { + boolean unique = false; + boolean multiEntry = false; +}; + +dictionary IDBVersionChangeEventInit : EventInit { + unsigned long long oldVersion = 0; + unsigned long long? newVersion = null; +}; + +[Exposed=(Window,Worker)] +interface IDBRequest : EventTarget { + readonly attribute any result; + readonly attribute DOMError error; + readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source; + readonly attribute IDBTransaction transaction; + readonly attribute IDBRequestReadyState readyState; + attribute EventHandler onsuccess; + attribute EventHandler onerror; +}; + +[Exposed=(Window,Worker)] +interface IDBOpenDBRequest : IDBRequest { + attribute EventHandler onblocked; + attribute EventHandler onupgradeneeded; +}; + +[Exposed=(Window,Worker), + Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict)] +interface IDBVersionChangeEvent : Event { + readonly attribute unsigned long long oldVersion; + readonly attribute unsigned long long? newVersion; +}; + +partial interface WindowOrWorkerGlobalScope { + readonly attribute IDBFactory indexedDB; +}; + +[Exposed=(Window,Worker)] +interface IDBFactory { + IDBOpenDBRequest open (DOMString name, [EnforceRange] optional unsigned long long version); + IDBOpenDBRequest deleteDatabase (DOMString name); + short cmp (any first, any second); +}; + +[Exposed=(Window,Worker)] +interface IDBDatabase : EventTarget { + readonly attribute DOMString name; + readonly attribute unsigned long long version; + readonly attribute DOMStringList objectStoreNames; + IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); + void deleteObjectStore (DOMString name); + IDBTransaction transaction ((DOMString or sequence) storeNames, optional IDBTransactionMode mode = "readonly"); + void close (); + attribute EventHandler onabort; + attribute EventHandler onclose; + attribute EventHandler onerror; + attribute EventHandler onversionchange; +}; + +[Exposed=(Window,Worker)] +interface IDBObjectStore { + attribute DOMString name; + readonly attribute any keyPath; + readonly attribute DOMStringList indexNames; + readonly attribute IDBTransaction transaction; + readonly attribute boolean autoIncrement; + IDBRequest put (any value, optional any key); + IDBRequest add (any value, optional any key); + IDBRequest delete (any key); + IDBRequest get (any key); + IDBRequest clear (); + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); + IDBIndex index (DOMString name); + void deleteIndex (DOMString indexName); + IDBRequest count (optional any key); +}; + +[Exposed=(Window,Worker)] +interface IDBIndex { + attribute DOMString name; + readonly attribute IDBObjectStore objectStore; + readonly attribute any keyPath; + readonly attribute boolean multiEntry; + readonly attribute boolean unique; + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); + IDBRequest get (any key); + IDBRequest getKey (any key); + IDBRequest count (optional any key); +}; + +[Exposed=(Window,Worker)] +interface IDBCursor { + readonly attribute (IDBObjectStore or IDBIndex) source; + readonly attribute IDBCursorDirection direction; + readonly attribute any key; + readonly attribute any primaryKey; + IDBRequest update (any value); + void advance ([EnforceRange] unsigned long count); + void continue (optional any key); + IDBRequest delete (); +}; + +[Exposed=(Window,Worker)] +interface IDBCursorWithValue : IDBCursor { + readonly attribute any value; +}; + +[Exposed=(Window,Worker)] +interface IDBTransaction : EventTarget { + readonly attribute IDBTransactionMode mode; + readonly attribute IDBDatabase db; + readonly attribute DOMError error; + IDBObjectStore objectStore (DOMString name); + void abort (); + attribute EventHandler onabort; + attribute EventHandler oncomplete; + attribute EventHandler onerror; +}; diff --git a/testing/web-platform/tests/IndexedDB/interfaces.worker.js b/testing/web-platform/tests/IndexedDB/interfaces.worker.js new file mode 100644 index 000000000..8616159b3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/interfaces.worker.js @@ -0,0 +1,37 @@ +"use strict"; + +importScripts("/resources/testharness.js"); +importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js"); + +var request = new XMLHttpRequest(); +request.open("GET", "interfaces.idl"); +request.send(); +request.onload = function() { + var idlArray = new IdlArray(); + var idls = request.responseText; + + idlArray.add_untested_idls("[Exposed=Worker] interface WorkerGlobalScope {};"); + idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface Event { };"); + idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface EventTarget { };"); + idlArray.add_untested_idls("[NoInterfaceObject, Exposed=(Window,Worker)] interface WindowOrWorkerGlobalScope {};"); + + // From Indexed DB: + idlArray.add_idls("WorkerGlobalScope implements WindowOrWorkerGlobalScope;"); + idlArray.add_idls(idls); + + idlArray.add_objects({ + IDBCursor: [], + IDBCursorWithValue: [], + IDBDatabase: [], + IDBFactory: ["self.indexedDB"], + IDBIndex: [], + IDBKeyRange: ["IDBKeyRange.only(0)"], + IDBObjectStore: [], + IDBOpenDBRequest: [], + IDBRequest: [], + IDBTransaction: [], + IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"], + }); + idlArray.test(); + done(); +}; diff --git a/testing/web-platform/tests/IndexedDB/key_invalid.htm b/testing/web-platform/tests/IndexedDB/key_invalid.htm new file mode 100644 index 000000000..30759d5ef --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/key_invalid.htm @@ -0,0 +1,129 @@ + + + +Invalid key + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/key_valid.html b/testing/web-platform/tests/IndexedDB/key_valid.html new file mode 100644 index 000000000..3bac0732c --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/key_valid.html @@ -0,0 +1,75 @@ + + + + +Valid key + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keygenerator-constrainterror.htm b/testing/web-platform/tests/IndexedDB/keygenerator-constrainterror.htm new file mode 100644 index 000000000..ee2e24799 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keygenerator-constrainterror.htm @@ -0,0 +1,73 @@ + + +Keygenerator ConstraintError when using same id as already generated + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keygenerator-overflow.htm b/testing/web-platform/tests/IndexedDB/keygenerator-overflow.htm new file mode 100644 index 000000000..d069f0a2b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keygenerator-overflow.htm @@ -0,0 +1,70 @@ + + +Keygenerator overflow + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keygenerator.htm b/testing/web-platform/tests/IndexedDB/keygenerator.htm new file mode 100644 index 000000000..7e5961382 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keygenerator.htm @@ -0,0 +1,65 @@ + + +Keygenerator + + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keyorder.htm b/testing/web-platform/tests/IndexedDB/keyorder.htm new file mode 100644 index 000000000..1896333f9 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keyorder.htm @@ -0,0 +1,175 @@ + + + +Key sort order + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keypath.htm b/testing/web-platform/tests/IndexedDB/keypath.htm new file mode 100644 index 000000000..b59d614e8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keypath.htm @@ -0,0 +1,146 @@ + + + +Keypath + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keypath_invalid.htm b/testing/web-platform/tests/IndexedDB/keypath_invalid.htm new file mode 100644 index 000000000..9c5bd6c2f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keypath_invalid.htm @@ -0,0 +1,65 @@ + + + +Invalid keypath + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/keypath_maxsize.htm b/testing/web-platform/tests/IndexedDB/keypath_maxsize.htm new file mode 100644 index 000000000..835b7a33b --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/keypath_maxsize.htm @@ -0,0 +1,63 @@ + + +Keypath + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/list_ordering.htm b/testing/web-platform/tests/IndexedDB/list_ordering.htm new file mode 100644 index 000000000..8349dbae7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/list_ordering.htm @@ -0,0 +1,61 @@ + + +objectStoreNames and indexNames order + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/objectstore_keyorder.htm b/testing/web-platform/tests/IndexedDB/objectstore_keyorder.htm new file mode 100644 index 000000000..69c281fd0 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/objectstore_keyorder.htm @@ -0,0 +1,49 @@ + + +Verify key sort order in an object store is 'number < Date < DOMString' + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/request_bubble-and-capture.htm b/testing/web-platform/tests/IndexedDB/request_bubble-and-capture.htm new file mode 100644 index 000000000..319f228c8 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/request_bubble-and-capture.htm @@ -0,0 +1,69 @@ + + +Bubbling and capturing of request events + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/string-list-ordering.htm b/testing/web-platform/tests/IndexedDB/string-list-ordering.htm new file mode 100644 index 000000000..cc905e56e --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/string-list-ordering.htm @@ -0,0 +1,85 @@ + + + + + +Test string list ordering in IndexedDB + + + + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/support-promises.js b/testing/web-platform/tests/IndexedDB/support-promises.js new file mode 100644 index 000000000..c24a9fb92 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/support-promises.js @@ -0,0 +1,200 @@ +// Returns an IndexedDB database name likely to be unique to the test case. +const databaseName = (testCase) => { + return 'db' + self.location.pathname + '-' + testCase.name; +}; + +// Creates an EventWatcher covering all the events that can be issued by +// IndexedDB requests and transactions. +const requestWatcher = (testCase, request) => { + return new EventWatcher(testCase, request, + ['error', 'success', 'upgradeneeded']); +}; + +// Migrates an IndexedDB database whose name is unique for the test case. +// +// newVersion must be greater than the database's current version. +// +// migrationCallback will be called during a versionchange transaction and will +// be given the created database and the versionchange transaction. +// +// Returns a promise. If the versionchange transaction goes through, the promise +// resolves to an IndexedDB database that must be closed by the caller. If the +// versionchange transaction is aborted, the promise resolves to an error. +const migrateDatabase = (testCase, newVersion, migrationCallback) => { + // We cannot use eventWatcher.wait_for('upgradeneeded') here, because + // the versionchange transaction auto-commits before the Promise's then + // callback gets called. + return new Promise((resolve, reject) => { + const request = indexedDB.open(databaseName(testCase), newVersion); + request.onupgradeneeded = testCase.step_func(event => { + const database = event.target.result; + const transaction = event.target.transaction; + let abortCalled = false; + + // We wrap IDBTransaction.abort so we can set up the correct event + // listeners and expectations if the test chooses to abort the + // versionchange transaction. + const transactionAbort = transaction.abort.bind(transaction); + transaction.abort = () => { + request.onerror = event => { + event.preventDefault(); + resolve(event); + }; + request.onsuccess = () => reject(new Error( + 'indexedDB.open should not succeed after the ' + + 'versionchange transaction is aborted')); + transactionAbort(); + abortCalled = true; + } + + migrationCallback(database, transaction); + if (!abortCalled) { + request.onsuccess = null; + resolve(requestWatcher(testCase, request).wait_for('success')); + } + }); + request.onerror = event => reject(event.target.error); + request.onsuccess = () => reject(new Error( + 'indexedDB.open should not succeed without creating a ' + + 'versionchange transaction')); + }).then(event => event.target.result || event.target.error); +}; + +// Creates an IndexedDB database whose name is unique for the test case. +// +// setupCallback will be called during a versionchange transaction, and will be +// given the created database and the versionchange transaction. +// +// Returns a promise that resolves to an IndexedDB database. The caller must +// close the database. +const createDatabase = (testCase, setupCallback) => { + const request = indexedDB.deleteDatabase(databaseName(testCase)); + const eventWatcher = requestWatcher(testCase, request); + + return eventWatcher.wait_for('success').then(event => + migrateDatabase(testCase, 1, setupCallback)); +}; + +// Opens an IndexedDB database without performing schema changes. +// +// The given version number must match the database's current version. +// +// Returns a promise that resolves to an IndexedDB database. The caller must +// close the database. +const openDatabase = (testCase, version) => { + const request = indexedDB.open(databaseName(testCase), version); + const eventWatcher = requestWatcher(testCase, request); + return eventWatcher.wait_for('success').then( + event => event.target.result); +} + +// The data in the 'books' object store records in the first example of the +// IndexedDB specification. +const BOOKS_RECORD_DATA = [ + { title: 'Quarry Memories', author: 'Fred', isbn: 123456 }, + { title: 'Water Buffaloes', author: 'Fred', isbn: 234567 }, + { title: 'Bedrock Nights', author: 'Barney', isbn: 345678 }, +]; + +// Creates a 'books' object store whose contents closely resembles the first +// example in the IndexedDB specification. +const createBooksStore = (testCase, database) => { + const store = database.createObjectStore('books', + { keyPath: 'isbn', autoIncrement: true }); + store.createIndex('by_author', 'author'); + store.createIndex('by_title', 'title', { unique: true }); + for (let record of BOOKS_RECORD_DATA) + store.put(record); + return store; +}; + +// Creates a 'not_books' object store used to test renaming into existing or +// deleted store names. +const createNotBooksStore = (testCase, database) => { + const store = database.createObjectStore('not_books'); + store.createIndex('not_by_author', 'author'); + store.createIndex('not_by_title', 'title', { unique: true }); + return store; +}; + +// Verifies that an object store's indexes match the indexes used to create the +// books store in the test database's version 1. +// +// The errorMessage is used if the assertions fail. It can state that the +// IndexedDB implementation being tested is incorrect, or that the testing code +// is using it incorrectly. +const checkStoreIndexes = (testCase, store, errorMessage) => { + assert_array_equals( + store.indexNames, ['by_author', 'by_title'], errorMessage); + const authorIndex = store.index('by_author'); + const titleIndex = store.index('by_title'); + return Promise.all([ + checkAuthorIndexContents(testCase, authorIndex, errorMessage), + checkTitleIndexContents(testCase, titleIndex, errorMessage), + ]); +}; + +// Verifies that an object store's key generator is in the same state as the +// key generator created for the books store in the test database's version 1. +// +// The errorMessage is used if the assertions fail. It can state that the +// IndexedDB implementation being tested is incorrect, or that the testing code +// is using it incorrectly. +const checkStoreGenerator = (testCase, store, expectedKey, errorMessage) => { + const request = store.put( + { title: 'Bedrock Nights ' + expectedKey, author: 'Barney' }); + const eventWatcher = requestWatcher(testCase, request); + return eventWatcher.wait_for('success').then(() => { + const result = request.result; + assert_equals(result, expectedKey, errorMessage); + }); +}; + +// Verifies that an object store's contents matches the contents used to create +// the books store in the test database's version 1. +// +// The errorMessage is used if the assertions fail. It can state that the +// IndexedDB implementation being tested is incorrect, or that the testing code +// is using it incorrectly. +const checkStoreContents = (testCase, store, errorMessage) => { + const request = store.get(123456); + const eventWatcher = requestWatcher(testCase, request); + return eventWatcher.wait_for('success').then(() => { + const result = request.result; + assert_equals(result.isbn, BOOKS_RECORD_DATA[0].isbn, errorMessage); + assert_equals(result.author, BOOKS_RECORD_DATA[0].author, errorMessage); + assert_equals(result.title, BOOKS_RECORD_DATA[0].title, errorMessage); + }); +}; + +// Verifies that index matches the 'by_author' index used to create the +// by_author books store in the test database's version 1. +// +// The errorMessage is used if the assertions fail. It can state that the +// IndexedDB implementation being tested is incorrect, or that the testing code +// is using it incorrectly. +const checkAuthorIndexContents = (testCase, index, errorMessage) => { + const request = index.get(BOOKS_RECORD_DATA[2].author); + const eventWatcher = requestWatcher(testCase, request); + return eventWatcher.wait_for('success').then(() => { + const result = request.result; + assert_equals(result.isbn, BOOKS_RECORD_DATA[2].isbn, errorMessage); + assert_equals(result.title, BOOKS_RECORD_DATA[2].title, errorMessage); + }); +}; + +// Verifies that an index matches the 'by_title' index used to create the books +// store in the test database's version 1. +// +// The errorMessage is used if the assertions fail. It can state that the +// IndexedDB implementation being tested is incorrect, or that the testing code +// is using it incorrectly. +const checkTitleIndexContents = (testCase, index, errorMessage) => { + const request = index.get(BOOKS_RECORD_DATA[2].title); + const eventWatcher = requestWatcher(testCase, request); + return eventWatcher.wait_for('success').then(() => { + const result = request.result; + assert_equals(result.isbn, BOOKS_RECORD_DATA[2].isbn, errorMessage); + assert_equals(result.author, BOOKS_RECORD_DATA[2].author, errorMessage); + }); +}; diff --git a/testing/web-platform/tests/IndexedDB/support.js b/testing/web-platform/tests/IndexedDB/support.js new file mode 100644 index 000000000..814987393 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/support.js @@ -0,0 +1,123 @@ +var databaseName = "database"; +var databaseVersion = 1; + +/* Delete created databases + * + * Go through each finished test, see if it has an associated database. Close + * that and delete the database. */ +add_completion_callback(function(tests) +{ + for (var i in tests) + { + if(tests[i].db) + { + tests[i].db.close(); + window.indexedDB.deleteDatabase(tests[i].db.name); + } + } +}); + +function fail(test, desc) { + return test.step_func(function(e) { + if (e && e.message && e.target.error) + assert_unreached(desc + " (" + e.target.error.name + ": " + e.message + ")"); + else if (e && e.message) + assert_unreached(desc + " (" + e.message + ")"); + else if (e && e.target.readyState === 'done' && e.target.error) + assert_unreached(desc + " (" + e.target.error.name + ")"); + else + assert_unreached(desc); + }); +} + +function createdb(test, dbname, version) +{ + var rq_open = createdb_for_multiple_tests(dbname, version); + return rq_open.setTest(test); +} + +function createdb_for_multiple_tests(dbname, version) { + var rq_open, + fake_open = {}, + test = null, + dbname = (dbname ? dbname : "testdb-" + new Date().getTime() + Math.random() ); + + if (version) + rq_open = window.indexedDB.open(dbname, version); + else + rq_open = window.indexedDB.open(dbname); + + function auto_fail(evt, current_test) { + /* Fail handlers, if we haven't set on/whatever/, don't + * expect to get event whatever. */ + rq_open.manually_handled = {} + + rq_open.addEventListener(evt, function(e) { + if (current_test !== test) { + return; + } + + test.step(function() { + if (!rq_open.manually_handled[evt]) { + assert_unreached("unexpected open." + evt + " event"); + } + + if (e.target.result + "" == "[object IDBDatabase]" && !this.db) { + this.db = e.target.result; + + this.db.onerror = fail(test, "unexpected db.error"); + this.db.onabort = fail(test, "unexpected db.abort"); + this.db.onversionchange = fail(test, "unexpected db.versionchange"); + } + }) + }) + rq_open.__defineSetter__("on" + evt, function(h) { + rq_open.manually_handled[evt] = true; + if (!h) + rq_open.addEventListener(evt, function() {}); + else + rq_open.addEventListener(evt, test.step_func(h)); + }) + } + + // add a .setTest method to the DB object + Object.defineProperty(rq_open, 'setTest', { + enumerable: false, + value: function(t) { + test = t; + + auto_fail("upgradeneeded", test); + auto_fail("success", test); + auto_fail("blocked", test); + auto_fail("error", test); + + return this; + } + }); + + return rq_open; +} + +function assert_key_equals(actual, expected, description) { + assert_equals(indexedDB.cmp(actual, expected), 0, description); +} + +function indexeddb_test(upgrade_func, open_func, description) { + async_test(function(t) { + var dbname = document.location + '-' + t.name; + var del = indexedDB.deleteDatabase(dbname); + del.onerror = t.unreached_func('deleteDatabase should succeed'); + var open = indexedDB.open(dbname, 1); + open.onerror = t.unreached_func('open should succeed'); + open.onupgradeneeded = t.step_func(function() { + var db = open.result; + var tx = open.transaction; + upgrade_func(t, db, tx); + }); + open.onsuccess = t.step_func(function() { + var db = open.result; + if (open_func) + open_func(t, db); + }); + }, description); +} diff --git a/testing/web-platform/tests/IndexedDB/transaction-abort-generator-revert.html b/testing/web-platform/tests/IndexedDB/transaction-abort-generator-revert.html new file mode 100644 index 000000000..770d623f7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-abort-generator-revert.html @@ -0,0 +1,108 @@ + +IndexedDB: aborting transactions reverts an object store's key generator state + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/transaction-abort-index-metadata-revert.html b/testing/web-platform/tests/IndexedDB/transaction-abort-index-metadata-revert.html new file mode 100644 index 000000000..88ea28e22 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-abort-index-metadata-revert.html @@ -0,0 +1,276 @@ + +IndexedDB: aborting transactions reverts index metadata + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/transaction-abort-multiple-metadata-revert.html b/testing/web-platform/tests/IndexedDB/transaction-abort-multiple-metadata-revert.html new file mode 100644 index 000000000..4a00d4113 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-abort-multiple-metadata-revert.html @@ -0,0 +1,291 @@ + +IndexedDB: aborting transactions reverts multiple operations on the same metadata + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/transaction-abort-object-store-metadata-revert.html b/testing/web-platform/tests/IndexedDB/transaction-abort-object-store-metadata-revert.html new file mode 100644 index 000000000..52982b8a3 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-abort-object-store-metadata-revert.html @@ -0,0 +1,188 @@ + +IndexedDB: aborting transactions reverts object store metadata + + + + + + diff --git a/testing/web-platform/tests/IndexedDB/transaction-create_in_versionchange.htm b/testing/web-platform/tests/IndexedDB/transaction-create_in_versionchange.htm new file mode 100644 index 000000000..4d98c0004 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-create_in_versionchange.htm @@ -0,0 +1,82 @@ + + +Attempt to create new transactions inside a versionchange transaction + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/transaction-lifetime-blocked.htm b/testing/web-platform/tests/IndexedDB/transaction-lifetime-blocked.htm new file mode 100644 index 000000000..3288506c5 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-lifetime-blocked.htm @@ -0,0 +1,108 @@ + +Blocked event + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/transaction-lifetime-empty.html b/testing/web-platform/tests/IndexedDB/transaction-lifetime-empty.html new file mode 100644 index 000000000..7d4b0d7f7 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-lifetime-empty.html @@ -0,0 +1,89 @@ + +IndexedDB: Commit ordering of empty transactions + + + + diff --git a/testing/web-platform/tests/IndexedDB/transaction-lifetime.htm b/testing/web-platform/tests/IndexedDB/transaction-lifetime.htm new file mode 100644 index 000000000..2412424fd --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-lifetime.htm @@ -0,0 +1,101 @@ + +Test events opening a second database when one connection is open already + + + + + +
+ + diff --git a/testing/web-platform/tests/IndexedDB/transaction-requestqueue.htm b/testing/web-platform/tests/IndexedDB/transaction-requestqueue.htm new file mode 100644 index 000000000..b5706fe81 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction-requestqueue.htm @@ -0,0 +1,89 @@ + + +Transactions have a request queue + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/transaction_bubble-and-capture.htm b/testing/web-platform/tests/IndexedDB/transaction_bubble-and-capture.htm new file mode 100644 index 000000000..f4b5ec0ae --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/transaction_bubble-and-capture.htm @@ -0,0 +1,75 @@ + + +Capture and bubble + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/value.htm b/testing/web-platform/tests/IndexedDB/value.htm new file mode 100644 index 000000000..36e833952 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/value.htm @@ -0,0 +1,40 @@ + + +Values + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/value_recursive.htm b/testing/web-platform/tests/IndexedDB/value_recursive.htm new file mode 100644 index 000000000..f49a1ccbc --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/value_recursive.htm @@ -0,0 +1,66 @@ + + +Recursive value + + + + + + + +
diff --git a/testing/web-platform/tests/IndexedDB/writer-starvation.htm b/testing/web-platform/tests/IndexedDB/writer-starvation.htm new file mode 100644 index 000000000..ae6c90150 --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/writer-starvation.htm @@ -0,0 +1,105 @@ + + +Writer starvation + + + + + + + + +
-- cgit v1.2.3