From 7621332824eac9edd65428f590da0d6fdcd6f529 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Sun, 17 Aug 2025 01:32:29 -0700 Subject: [PATCH] tests: Turn on `IndexedDB` tests and update results (#38722) Signed-off-by: Ashwin Naren --- tests/wpt/include.ini | 2 +- .../blob-valid-after-abort.any.js.ini | 17 ++++++++++++ .../crashtests/create-index.any.js.ini | 17 ++++++++++++ .../idbdatabase_createObjectStore.any.js.ini | 6 ----- ...dbobjectstore-cross-realm-methods.html.ini | 10 +++---- .../IndexedDB/idbobjectstore_count.any.js.ini | 6 +++-- .../idbobjectstore_delete.any.js.ini | 6 +++++ .../IndexedDB/idbobjectstore_get.any.js.ini | 20 +++++++++----- .../IndexedDB/structured-clone.any.js.ini | 12 +++++++++ ...transaction-deactivation-timing.any.js.ini | 6 +++++ tests/wpt/meta/IndexedDB/value.any.js.ini | 26 ++++++++++--------- .../meta/IndexedDB/value_recursive.any.js.ini | 20 ++++++++++++++ .../IndexedDB/writer-starvation.any.js.ini | 6 +++-- 13 files changed, 120 insertions(+), 34 deletions(-) create mode 100644 tests/wpt/meta/IndexedDB/blob-valid-after-abort.any.js.ini create mode 100644 tests/wpt/meta/IndexedDB/crashtests/create-index.any.js.ini diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index dcc5a6ae8e7..02c27c44a81 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -185,7 +185,7 @@ skip: true [import-maps] skip: false [IndexedDB] - skip: true + skip: false [intersection-observer] skip: false [js] diff --git a/tests/wpt/meta/IndexedDB/blob-valid-after-abort.any.js.ini b/tests/wpt/meta/IndexedDB/blob-valid-after-abort.any.js.ini new file mode 100644 index 00000000000..7aae36eab3d --- /dev/null +++ b/tests/wpt/meta/IndexedDB/blob-valid-after-abort.any.js.ini @@ -0,0 +1,17 @@ +[blob-valid-after-abort.any.sharedworker.html] + expected: ERROR + +[blob-valid-after-abort.any.worker.html] + expected: TIMEOUT + [A blob can be read back after the transaction that added it was aborted.] + expected: TIMEOUT + + +[blob-valid-after-abort.any.html] + expected: TIMEOUT + [A blob can be read back after the transaction that added it was aborted.] + expected: TIMEOUT + + +[blob-valid-after-abort.any.serviceworker.html] + expected: ERROR diff --git a/tests/wpt/meta/IndexedDB/crashtests/create-index.any.js.ini b/tests/wpt/meta/IndexedDB/crashtests/create-index.any.js.ini new file mode 100644 index 00000000000..e1cf8446fd3 --- /dev/null +++ b/tests/wpt/meta/IndexedDB/crashtests/create-index.any.js.ini @@ -0,0 +1,17 @@ +[create-index.any.html] + expected: TIMEOUT + [Assure no crash when populating index] + expected: TIMEOUT + + +[create-index.any.worker.html] + expected: TIMEOUT + [Assure no crash when populating index] + expected: TIMEOUT + + +[create-index.any.serviceworker.html] + expected: ERROR + +[create-index.any.sharedworker.html] + expected: ERROR diff --git a/tests/wpt/meta/IndexedDB/idbdatabase_createObjectStore.any.js.ini b/tests/wpt/meta/IndexedDB/idbdatabase_createObjectStore.any.js.ini index 4512d163880..368133106f4 100644 --- a/tests/wpt/meta/IndexedDB/idbdatabase_createObjectStore.any.js.ini +++ b/tests/wpt/meta/IndexedDB/idbdatabase_createObjectStore.any.js.ini @@ -5,9 +5,6 @@ [Both with empty name] expected: FAIL - [Create 1000 object stores, add one item and delete] - expected: FAIL - [Object store 'name' and 'keyPath' properties are correctly set ] expected: FAIL @@ -25,9 +22,6 @@ [Both with empty name] expected: FAIL - [Create 1000 object stores, add one item and delete] - expected: FAIL - [Object store 'name' and 'keyPath' properties are correctly set ] expected: FAIL diff --git a/tests/wpt/meta/IndexedDB/idbobjectstore-cross-realm-methods.html.ini b/tests/wpt/meta/IndexedDB/idbobjectstore-cross-realm-methods.html.ini index f3912116c34..bbe9c510a2d 100644 --- a/tests/wpt/meta/IndexedDB/idbobjectstore-cross-realm-methods.html.ini +++ b/tests/wpt/meta/IndexedDB/idbobjectstore-cross-realm-methods.html.ini @@ -4,16 +4,16 @@ expected: TIMEOUT [Cross-realm IDBObjectStore::add() method from detached