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

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

Issue 1612993002: Unflake dynamic adding of preload links test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test expectation 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | 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 dynamically added preloaded resource is downloaded'); 5 var t = async_test('Makes sure that dynamically added preloaded resource is downloaded');
6 </script> 6 </script>
7 <body> 7 <body>
8 <script> 8 <script>
9 var link = document.createElement("link"); 9 var link = document.createElement("link");
10 link.as = "script"; 10 link.as = "script";
11 link.rel = "preload"; 11 link.rel = "preload";
12 link.href = "../resources/dummy.js"; 12 link.href = "../resources/dummy.js";
13 link.onload = t.step_func(function() {
14 assert_equals(performance.getEntriesByType("resource").length, 3);
15 t.done();
16 });
13 document.body.appendChild(link); 17 document.body.appendChild(link);
14 window.addEventListener("load", t.step_func(function() {
15 assert_equals(performance.getEntriesByType("resource").length, 4);
16 t.done();
17 }));
18 </script> 18 </script>
19 <script src="../resources/slow-script.pl?delay=200"></script>
20 </body> 19 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698