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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/preload/dynamic_adding_preload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/dynamic_adding_preload.html b/third_party/WebKit/LayoutTests/http/tests/preload/dynamic_adding_preload.html
index 21b0a9bfd6e2df710d46246be3f10ce3a94c2abb..5d07d5d906ed002613271288fd27b7b1aef80c90 100644
--- a/third_party/WebKit/LayoutTests/http/tests/preload/dynamic_adding_preload.html
+++ b/third_party/WebKit/LayoutTests/http/tests/preload/dynamic_adding_preload.html
@@ -10,11 +10,10 @@
link.as = "script";
link.rel = "preload";
link.href = "../resources/dummy.js";
- document.body.appendChild(link);
- window.addEventListener("load", t.step_func(function() {
- assert_equals(performance.getEntriesByType("resource").length, 4);
+ link.onload = t.step_func(function() {
+ assert_equals(performance.getEntriesByType("resource").length, 3);
t.done();
- }));
+ });
+ document.body.appendChild(link);
</script>
-<script src="../resources/slow-script.pl?delay=200"></script>
</body>
« 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