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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-event.https.html

Issue 2783623003: Fetch API: Don't exclude the URL fragment in Request#url (Closed)
Patch Set: address comments Created 3 years, 8 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 <script src="/resources/testharness.js"></script> 2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script> 3 <script src="/resources/testharnessreport.js"></script>
4 <script src="/common/get-host-info.sub.js"></script> 4 <script src="/common/get-host-info.sub.js"></script>
5 <script src="resources/test-helpers.sub.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
6 <body> 6 <body>
7 <script> 7 <script>
8 var worker = 'resources/fetch-event-test-worker.js'; 8 var worker = 'resources/fetch-event-test-worker.js';
9 9
10 async_test(function(t) { 10 async_test(function(t) {
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 .then(function() { return with_iframe(scope + fragment); }) 508 .then(function() { return with_iframe(scope + fragment); })
509 .then(function(frame) { 509 .then(function(frame) {
510 assert_equals( 510 assert_equals(
511 frame.contentDocument.body.textContent, 511 frame.contentDocument.body.textContent,
512 'Fragment Found :' + fragment, 512 'Fragment Found :' + fragment,
513 'Service worker should expose URL fragments in request.'); 513 'Service worker should expose URL fragments in request.');
514 frame.remove(); 514 frame.remove();
515 return service_worker_unregister_and_done(t, scope); 515 return service_worker_unregister_and_done(t, scope);
516 }) 516 })
517 .catch(unreached_rejection(t)); 517 .catch(unreached_rejection(t));
518 }, 'Service Worker must not expose FetchEvent URL fragments.'); 518 }, 'Service Worker should expose FetchEvent URL fragments.');
519 async_test(function(t) { 519 async_test(function(t) {
520 var scope = 'resources/simple.html?cache'; 520 var scope = 'resources/simple.html?cache';
521 var frame; 521 var frame;
522 var cacheTypes = [ 522 var cacheTypes = [
523 undefined, 'default', 'no-store', 'reload', 'no-cache', 'force-cache', 'on ly-if-cached' 523 undefined, 'default', 'no-store', 'reload', 'no-cache', 'force-cache', 'on ly-if-cached'
524 ]; 524 ];
525 service_worker_unregister_and_register(t, worker, scope) 525 service_worker_unregister_and_register(t, worker, scope)
526 .then(function(reg) { 526 .then(function(reg) {
527 return wait_for_state(t, reg.installing, 'activated'); 527 return wait_for_state(t, reg.installing, 'activated');
528 }) 528 })
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 }) 656 })
657 .then(function() { 657 .then(function() {
658 frame.remove(); 658 frame.remove();
659 return service_worker_unregister_and_done(t, scope); 659 return service_worker_unregister_and_done(t, scope);
660 }) 660 })
661 .catch(unreached_rejection(t)); 661 .catch(unreached_rejection(t));
662 }, 'Service Worker responds to fetch event with the correct integrity_metadata '); 662 }, 'Service Worker responds to fetch event with the correct integrity_metadata ');
663 663
664 </script> 664 </script>
665 </body> 665 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698