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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/preload/download_resources.html

Issue 1605503002: Added tests for more preload as values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/preload/single_download_preload.html » ('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 that preloaded resources are not downloaded a gain when used'); 5 var t = async_test('Makes sure that preloaded resources are not downloaded a gain when used');
6 </script> 6 </script>
7 <link rel=preload href="../resources/dummy.js" as=script> 7 <link rel=preload href="../resources/dummy.js" as=script>
8 <link rel=preload href="../resources/dummy.css" as=style> 8 <link rel=preload href="../resources/dummy.css" as=style>
9 <link rel=preload href="../resources/square.png" as=image> 9 <link rel=preload href="../resources/square.png" as=image>
10 <link rel=preload href="../resources/square.png?background" as=image> 10 <link rel=preload href="../resources/square.png?background" as=image>
11 <link rel=preload href="../resources/Ahem.ttf" as=font crossorigin> 11 <link rel=preload href="../resources/Ahem.ttf" as=font crossorigin>
12 <link rel=preload href="../resources/test.mp4" as=video>
13 <link rel=preload href="../resources/test.oga" as=audio>
14 <link rel=preload href="../security/resources/captions.vtt" as=track>
15 <link rel=preload href="../resources/dummy.xml" as=foobarxmlthing>
16 <link rel=preload href="../resources/dummy.xml">
12 <script src="../resources/slow-script.pl?delay=200"></script> 17 <script src="../resources/slow-script.pl?delay=200"></script>
13 <script> 18 <script>
14 window.addEventListener("load", t.step_func(function() { 19 window.addEventListener("load", t.step_func(function() {
15 assert_equals(performance.getEntriesByType("resource").length, 8); 20 var entries = performance.getEntriesByType("resource");
21 for (var i = 0; i < entries.length; ++i) {
22 console.log(entries[i].name);
23 }
24 assert_equals(performance.getEntriesByType("resource").length, 12);
16 t.done(); 25 t.done();
17 })); 26 }));
18 </script> 27 </script>
19
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698