mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1244764 P5 Fix devtools test to work with new Cache add()/addAll() behavior. r=ehsan
This commit is contained in:
parent
e533580bf1
commit
fbb97ef00e
@ -97,10 +97,15 @@ function deleteDB(dbName) {
|
||||
});
|
||||
}
|
||||
|
||||
function fetchPut(cache, url) {
|
||||
let response = yield fetch(url);
|
||||
yield cache.put(url, response);
|
||||
}
|
||||
|
||||
let cacheGenerator = function*() {
|
||||
let cache = yield caches.open("plop");
|
||||
yield cache.add("404_cached_file.js");
|
||||
yield cache.add("browser_storage_basic.js");
|
||||
yield fetchPut(cache, "404_cached_file.js");
|
||||
yield fetchPut(cache, "browser_storage_basic.js");
|
||||
};
|
||||
|
||||
window.setup = function*() {
|
||||
|
Loading…
Reference in New Issue
Block a user