Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/import-scripts-resource-map.https.html

Issue 2864783002: Upstream service wrkr `importScripts` tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Tests for importScripts: script resource map</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/test-helpers.sub.js"></script>
7 <body>
8 <script>
9 // This test registers a worker that imports a script multiple times. The
10 // script should be stored on the first import and thereafter that stored
11 // script should be loaded. The worker asserts that the stored script was
12 // loaded; if the assert fails then registration fails.
13 promise_test(t => {
14 const scope = 'resources/import-scripts-resource-map';
15 return service_worker_unregister(t, scope)
16 .then(() => {
17 return navigator.serviceWorker.register(
18 'resources/import-scripts-resource-map-worker.js', {scope: scope}) ;
19 })
20 .then(r => r.unregister());
21 }, 'import the same script URL multiple times');
22 </script>
23 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/import-scripts-updated-flag.https.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698