1
0
Fork 0
firefox/dom/cache/test/xpcshell/test_schema_26_upgrade.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
720 B
JavaScript

/**
* The schema_25_profile.zip are made from local Nightly by following step
* 1. Go to any website
* 2. Open web console and type
* caches.open("test")
* .then(c => fetch("https://www.mozilla.org", {mode:"no-cors"})
* .then(r => c.put("https://www.mozilla.org", r)));
* 3. Go to profile directory and rename the website folder to "chrome"
*/
add_task(async function testSteps() {
create_test_profile("schema_25_profile.zip");
let cache = await caches.open("test");
let response = await cache.match("https://www.mozilla.org");
ok(!!response, "Upgrade from 25 to 26 do succeed");
Assert.strictEqual(
response.type,
"opaque",
"The response type does be opaque"
);
});