Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-link-element/link-load-event.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-link-element/link-load-event.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-link-element/link-load-event.html |
index afe86a4210ce6df167971c4e693b32f5b6164a1a..6f6172a2d62cf79c0cbba653c4da68326c73ca90 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-link-element/link-load-event.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-link-element/link-load-event.html |
@@ -10,12 +10,9 @@ var t = async_test("Check if the stylesheet's load event blocks the document loa |
document.getElementById('style_test').onload = t.step_func(function() { |
saw_link_onload = true; |
}); |
-window.addEventListener('load', function() { |
- t.step_func(function() { |
- assert_true(saw_link_onload); |
- }); |
- t.done(); |
-}, false); |
+window.addEventListener('load', t.step_func_done(function() { |
+ assert_true(saw_link_onload); |
+})); |
</script> |
</head> |
</html> |