test_schema_26_upgrade.js (720B)
1 /** 2 * The schema_25_profile.zip are made from local Nightly by following step 3 * 1. Go to any website 4 * 2. Open web console and type 5 * caches.open("test") 6 * .then(c => fetch("https://www.mozilla.org", {mode:"no-cors"}) 7 * .then(r => c.put("https://www.mozilla.org", r))); 8 * 3. Go to profile directory and rename the website folder to "chrome" 9 */ 10 11 add_task(async function testSteps() { 12 create_test_profile("schema_25_profile.zip"); 13 14 let cache = await caches.open("test"); 15 let response = await cache.match("https://www.mozilla.org"); 16 ok(!!response, "Upgrade from 25 to 26 do succeed"); 17 Assert.strictEqual( 18 response.type, 19 "opaque", 20 "The response type does be opaque" 21 ); 22 });