commit d0ede5b6f046a7aa21d6293332654679c393a5d5
parent 4c922016d5af636c9d26842755f1e70eb1a960f7
Author: Randell Jesup <rjesup@mozilla.com>
Date: Thu, 27 Nov 2025 00:19:00 +0200
Bug 2002034: Fix handling of paths for compression dictionaries in storage test r=#necko-reviewers!
Differential Revision: https://phabricator.services.mozilla.com/D274197
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/netwerk/test/unit/test_dictionary_storage.js b/netwerk/test/unit/test_dictionary_storage.js
@@ -25,14 +25,14 @@ const TEST_DICTIONARIES = {
},
large: {
id: "test-dict-large",
- content: "A".repeat(1024 * 100), // 100KB dictionary
+ content: "C".repeat(1024 * 100), // 100KB dictionary
pattern: "*.html",
type: "raw",
},
large_url: {
id: "test-dict-large-url",
content: "large URL content",
- pattern: "large",
+ pattern: "file",
type: "raw",
},
too_large_url: {
@@ -135,7 +135,7 @@ async function setupServer() {
const TEST_DICTIONARIES = {
large: {
id: "test-dict-large",
- content: "A".repeat(1024 * 100), // 100KB dictionary
+ content: "C".repeat(1024 * 100), // 100KB dictionary
pattern: "*.html",
type: "raw",
},
@@ -160,7 +160,7 @@ async function setupServer() {
large_url: {
id: "test-dict-large-url",
content: "large URL content",
- pattern: "large",
+ pattern: "file",
type: "raw",
},
};
@@ -551,7 +551,7 @@ add_task(async function test_long_dictionary_url() {
});
// Verify Use-As-Dictionary header was processed and it's an active dictionary
- url = `https://localhost:${server.port()}/large`;
+ url = `https://localhost:${server.port()}/dict/large/file`;
chan = makeChan(url);
[req, data] = await channelOpenPromise(chan);