Bug 1244764 P5 Fix devtools test to work with new Cache add()/addAll() behavior. r=ehsan

This commit is contained in:
Ben Kelly 2016-02-04 07:59:52 -08:00
parent e533580bf1
commit fbb97ef00e

View File

@ -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*() {