Bug 1582640 [wpt PR 19174] - Fix typo in fetch-event-within-sw.https.html, a=testonly
authorYuta Kasai <yutakasai@google.com>
Mon, 23 Sep 2019 12:25:37 +0000
changeset 494704 e52193058ac02f7e7c7d1e8e9986600055493b1d
parent 494703 8e0f065609cf155c742bc1050366f0c60cd3d1d9
child 494705 a3853b7e8c830933e92d980ec8fd88e0dbff36a4
push id114126
push userwptsync@mozilla.com
push dateTue, 24 Sep 2019 19:34:44 +0000
treeherdermozilla-inbound@068d8731f1c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1582640, 19174, 678905, 1815924, 698577
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1582640 [wpt PR 19174] - Fix typo in fetch-event-within-sw.https.html, a=testonly Automatic update from web-platform-tests Fix typo in fetch-event-within-sw.https.html This just fixes typo in the test. Bug: 678905 Change-Id: I21a323edeb0691759bbbc940c583bb537b66f258 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815924 Commit-Queue: Philip J├Ągenstedt <foolip@chromium.org> Reviewed-by: Philip J├Ągenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#698577} -- wpt-commits: aa27ce9eee66b7a629fe40df981a894040d193f6 wpt-pr: 19174
testing/web-platform/tests/service-workers/service-worker/fetch-event-within-sw.https.html
--- a/testing/web-platform/tests/service-workers/service-worker/fetch-event-within-sw.https.html
+++ b/testing/web-platform/tests/service-workers/service-worker/fetch-event-within-sw.https.html
@@ -13,23 +13,23 @@ async function registerSwAndOpenFrame(t)
   t.add_cleanup(() => registration.unregister());
   await wait_for_state(t, registration.installing, 'activated');
 
   const frame = await with_iframe('resources/simple.html');
   t.add_cleanup(() => frame.remove());
   return frame;
 }
 
-async function deleteCashes() {
+async function deleteCaches() {
   const cacheKeys = await caches.keys();
   await Promise.all(cacheKeys.map(c => caches.delete(c)));
 }
 
 promise_test(async t => {
-  t.add_cleanup(deleteCashes);
+  t.add_cleanup(deleteCaches);
 
   const iframe = await registerSwAndOpenFrame(t);
   const fetchText =
       await iframe.contentWindow.fetch('dummy.txt').then(r => r.text());
 
   const cache = await iframe.contentWindow.caches.open('test');
   await cache.add('dummy.txt');