summaryrefslogtreecommitdiffstats
path: root/storage/test/unit/test_connection_executeAsync.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /storage/test/unit/test_connection_executeAsync.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'storage/test/unit/test_connection_executeAsync.js')
-rw-r--r--storage/test/unit/test_connection_executeAsync.js20
1 files changed, 6 insertions, 14 deletions
diff --git a/storage/test/unit/test_connection_executeAsync.js b/storage/test/unit/test_connection_executeAsync.js
index a77299ba3b..49071bbfed 100644
--- a/storage/test/unit/test_connection_executeAsync.js
+++ b/storage/test/unit/test_connection_executeAsync.js
@@ -49,13 +49,9 @@ add_task(async function test_first_create_and_add() {
stmts[1].bindBlobByIndex(3, BLOB, BLOB.length);
// asynchronously execute the statements
- let execResult = await executeMultipleStatementsAsync(
- db,
- stmts,
- function (aResultSet) {
- ok(false, "we only did inserts so we should not have gotten results!");
- }
- );
+ let execResult = await executeMultipleStatementsAsync(db, stmts, function () {
+ ok(false, "we only did inserts so we should not have gotten results!");
+ });
equal(
Ci.mozIStorageStatementCallback.REASON_FINISHED,
execResult,
@@ -142,13 +138,9 @@ add_task(async function test_last_multiple_bindings_on_statements() {
}
// Execute asynchronously.
- let execResult = await executeMultipleStatementsAsync(
- db,
- stmts,
- function (aResultSet) {
- ok(false, "we only did inserts so we should not have gotten results!");
- }
- );
+ let execResult = await executeMultipleStatementsAsync(db, stmts, function () {
+ ok(false, "we only did inserts so we should not have gotten results!");
+ });
equal(
Ci.mozIStorageStatementCallback.REASON_FINISHED,
execResult,