summaryrefslogtreecommitdiffstats
path: root/storage/test/unit/test_storage_connection.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_storage_connection.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_storage_connection.js')
-rw-r--r--storage/test/unit/test_storage_connection.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/test/unit/test_storage_connection.js b/storage/test/unit/test_storage_connection.js
index e7175a9613..4636e3edbb 100644
--- a/storage/test/unit/test_storage_connection.js
+++ b/storage/test/unit/test_storage_connection.js
@@ -980,6 +980,10 @@ add_task(async function test_variableLimit() {
info("Open connection");
let db = Services.storage.openDatabase(getTestDB());
Assert.equal(db.variableLimit, 32766, "Should return default limit");
+ db.variableLimit = 999;
+ Assert.equal(db.variableLimit, 999, "Should return the set limit");
+ db.variableLimit = 33000;
+ Assert.equal(db.variableLimit, 32766, "Should silently truncate");
await asyncClose(db);
});