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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-event-after-navigation-within-page.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>ServiceWorker: navigator.serviceWorker.waiting</title> 2 <title>ServiceWorker: navigator.serviceWorker.waiting</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
6 <body> 6 <body>
7 <script> 7 <script>
8 8
9 promise_test(function(t) { 9 promise_test(function(t) {
10 var scope = 10 var scope =
11 'resources/fetch-event-after-navigation-within-page-iframe.html' + 11 'resources/fetch-event-after-navigation-within-page-iframe.html' +
12 '?hashchange'; 12 '?hashchange';
13 var worker = 'resources/simple-intercept-worker.js'; 13 var worker = 'resources/simple-intercept-worker.js';
14 var frame; 14 var frame;
15 15
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return frame.contentWindow.fetch_url('simple.txt'); 56 return frame.contentWindow.fetch_url('simple.txt');
57 }) 57 })
58 .then(function(response) { 58 .then(function(response) {
59 assert_equals(response, 'intercepted by service worker'); 59 assert_equals(response, 'intercepted by service worker');
60 frame.remove(); 60 frame.remove();
61 return service_worker_unregister_and_done(t, scope); 61 return service_worker_unregister_and_done(t, scope);
62 }) 62 })
63 }, 'Service Worker should respond to fetch event after the pushState'); 63 }, 'Service Worker should respond to fetch event after the pushState');
64 64
65 </script> 65 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698