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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/linkHeader/link-preload-in-js.html

Issue 1627203002: Fix link header preload on subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/linkHeader/resources/link-preload-js.php » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 4 <script>
5 var t = async_test('Makes sure link preload preloaded resources are not dela ying onload'); 5 var t = async_test('Makes sure link preload headers are loaded on subresourc es');
6 </script> 6 </script>
7 <link rel=preload href="../resources/slow-script.pl?delay=200" as=script> 7 <script src="resources/link-preload-js.php"></script>
8 <script src="../resources/slow-script.pl?delay=200"></script>
8 <script> 9 <script>
9 window.addEventListener("load", t.step_func(function() { 10 window.addEventListener("load", t.step_func(function() {
10 assert_equals(performance.getEntriesByType("resource").length, 2); 11 assert_equals(performance.getEntriesByType("resource").length, 5);
11 t.done(); 12 t.done();
12 })); 13 }));
13 </script> 14 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/linkHeader/resources/link-preload-js.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698