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

Side by Side Diff: LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html

Issue 695943002: Reland "Prepare blink to unify definitions of load completion" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Service Worker: FetchEvent for HTMLImports</title> 2 <title>Service Worker: FetchEvent for HTMLImports</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?pipe=sub"></script> 5 <script src="resources/test-helpers.js?pipe=sub"></script>
6 <script> 6 <script>
7 async_test(function(t) { 7 async_test(function(t) {
8 var SCOPE = 'resources/fetch-request-html-imports-iframe.html'; 8 var SCOPE = 'resources/fetch-request-html-imports-iframe.html';
9 var SCRIPT = 'resources/fetch-request-html-imports-worker.js'; 9 var SCRIPT = 'resources/fetch-request-html-imports-worker.js';
10 var host_info = get_host_info(); 10 var host_info = get_host_info();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 other_same.body.innerText, 46 other_same.body.innerText,
47 'mode=cors credentials=include', 47 'mode=cors credentials=include',
48 'The request mode and credentials for same origin HTMLImport ' + 48 'The request mode and credentials for same origin HTMLImport ' +
49 'from other origin HTMLImports must be set correctly.'); 49 'from other origin HTMLImports must be set correctly.');
50 assert_equals( 50 assert_equals(
51 other_other.body.innerText, 51 other_other.body.innerText,
52 'mode=cors credentials=omit', 52 'mode=cors credentials=omit',
53 'The request mode and credentials for other origin HTMLImport ' + 53 'The request mode and credentials for other origin HTMLImport ' +
54 'from other origin HTMLImport must be set correctly.'); 54 'from other origin HTMLImport must be set correctly.');
55 55
56 unload_iframe(frame);
57 service_worker_unregister_and_done(t, SCOPE); 56 service_worker_unregister_and_done(t, SCOPE);
58 }) 57 })
59 .catch(unreached_rejection(t)); 58 .catch(unreached_rejection(t));
60 }, 'Verify the FetchEvent for HTMLImports'); 59 }, 'Verify the FetchEvent for HTMLImports');
61 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698