diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /dom/indexedDB/test | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/indexedDB/test')
-rw-r--r-- | dom/indexedDB/test/perfdocs/index.rst | 2 | ||||
-rw-r--r-- | dom/indexedDB/test/unit/test_invalid_version.js | 16 | ||||
-rw-r--r-- | dom/indexedDB/test/unit/test_metadata2Restore.js | 40 | ||||
-rw-r--r-- | dom/indexedDB/test/unit/test_metadataRestore.js | 24 |
4 files changed, 33 insertions, 49 deletions
diff --git a/dom/indexedDB/test/perfdocs/index.rst b/dom/indexedDB/test/perfdocs/index.rst index ec54211038..5d7d98e3de 100644 --- a/dom/indexedDB/test/perfdocs/index.rst +++ b/dom/indexedDB/test/perfdocs/index.rst @@ -51,7 +51,7 @@ How to add more tests? * Under the ``[test_name]`` section, specity the test parameters as a sequence of ``--browsertime.key=value`` arguments as a value of ``browsertime_args =`` * Under the ``[test_name]`` section, override any other values as needed -* Add test as a subtest to run for Desktop ``taskcluster/ci/test/browsertime-desktop.yml`` (maybe also for mobile) +* Add test as a subtest to run for Desktop ``taskcluster/kinds/test/browsertime-desktop.yml`` (maybe also for mobile) * Add test documentation to ``testing/raptor/raptor/perfdocs/config.yml`` * Generated files: diff --git a/dom/indexedDB/test/unit/test_invalid_version.js b/dom/indexedDB/test/unit/test_invalid_version.js index ea5e2953d0..bf745cb93a 100644 --- a/dom/indexedDB/test/unit/test_invalid_version.js +++ b/dom/indexedDB/test/unit/test_invalid_version.js @@ -26,21 +26,5 @@ function* testSteps() { is(e.name, "TypeError", "Good error name."); } - try { - indexedDB.open(name, { version: 0 }); - ok(false, "Should have thrown!"); - } catch (e) { - ok(e instanceof TypeError, "Got TypeError."); - is(e.name, "TypeError", "Good error name."); - } - - try { - indexedDB.open(name, { version: -1 }); - ok(false, "Should have thrown!"); - } catch (e) { - ok(e instanceof TypeError, "Got TypeError."); - is(e.name, "TypeError", "Good error name."); - } - finishTest(); } diff --git a/dom/indexedDB/test/unit/test_metadata2Restore.js b/dom/indexedDB/test/unit/test_metadata2Restore.js index da31eecc86..643e734e70 100644 --- a/dom/indexedDB/test/unit/test_metadata2Restore.js +++ b/dom/indexedDB/test/unit/test_metadata2Restore.js @@ -15,7 +15,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:81", dbName: "dbC", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+82^userContextId=1 @@ -25,7 +25,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:82", dbName: "dbD", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+83^userContextId=1 @@ -36,7 +36,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:83", dbName: "dbE", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+84^userContextId=1 @@ -47,7 +47,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:84", dbName: "dbF", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+85^userContextId=1 @@ -59,7 +59,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:85", dbName: "dbG", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+86^userContextId=1 @@ -72,7 +72,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:86", dbName: "dbH", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+87^userContextId=1 @@ -85,7 +85,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:87", dbName: "dbI", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+88^userContextId=1 @@ -99,7 +99,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:88", dbName: "dbJ", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+89^userContextId=1 @@ -113,7 +113,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:89", dbName: "dbK", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+90^userContextId=1 @@ -128,7 +128,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:90", dbName: "dbL", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+91^userContextId=1 @@ -144,7 +144,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:91", dbName: "dbM", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+92^userContextId=1 @@ -160,7 +160,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:92", dbName: "dbN", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+93^userContextId=1 @@ -177,7 +177,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:93", dbName: "dbO", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+94^userContextId=1 @@ -195,7 +195,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:94", dbName: "dbP", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+95^userContextId=1 @@ -213,7 +213,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:95", dbName: "dbQ", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+96^userContextId=1 @@ -232,7 +232,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:96", dbName: "dbR", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+97^userContextId=1 @@ -252,7 +252,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:97", dbName: "dbS", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+98^userContextId=1 @@ -272,7 +272,7 @@ function* testSteps() { attrs: { userContextId: 1 }, url: "http://localhost:98", dbName: "dbT", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, ]; @@ -287,10 +287,10 @@ function* testSteps() { request = indexedDB.openForPrincipal( principal, params.dbName, - params.dbOptions + params.dbVersion ); } else { - request = indexedDB.open(params.dbName, params.dbOptions); + request = indexedDB.open(params.dbName, params.dbVersion); } return request; } diff --git a/dom/indexedDB/test/unit/test_metadataRestore.js b/dom/indexedDB/test/unit/test_metadataRestore.js index 001d4da65b..302b1614d0 100644 --- a/dom/indexedDB/test/unit/test_metadataRestore.js +++ b/dom/indexedDB/test/unit/test_metadataRestore.js @@ -12,70 +12,70 @@ function* testSteps() { { url: "http://localhost:81", dbName: "dbC", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+82 { url: "http://localhost:82", dbName: "dbD", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+83 { url: "http://localhost:83", dbName: "dbE", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+84 { url: "http://localhost:84", dbName: "dbF", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+85 { url: "http://localhost:85", dbName: "dbG", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+86 { url: "http://localhost:86", dbName: "dbH", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+87 { url: "http://localhost:87", dbName: "dbI", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+88 { url: "http://localhost:88", dbName: "dbJ", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+89 { url: "http://localhost:89", dbName: "dbK", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, // This one lives in storage/default/http+++localhost+90 { url: "http://localhost:90", dbName: "dbL", - dbOptions: { version: 1, storage: "default" }, + dbVersion: 1, }, ]; @@ -90,10 +90,10 @@ function* testSteps() { request = indexedDB.openForPrincipal( principal, params.dbName, - params.dbOptions + params.dbVersion ); } else { - request = indexedDB.open(params.dbName, params.dbOptions); + request = indexedDB.open(params.dbName, params.dbVersion); } return request; } |