Index: third_party/WebKit/LayoutTests/external/wpt/preload/onload-event.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/preload/onload-event.html b/third_party/WebKit/LayoutTests/external/wpt/preload/onload-event.html |
index 684f84f9cb3f54977b9f580335b74803dbfd9114..86a985286d535278e4275a759106a8410bc4a36d 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/preload/onload-event.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/preload/onload-event.html |
@@ -14,6 +14,7 @@ |
var gibberishLoaded = false; |
var gibberishErrored = false; |
var noTypeLoaded = false; |
+ var fetchLoaded = false; |
</script> |
<link rel=preload href="resources/dummy.js" as=script onload="scriptLoaded = true;"> |
<link rel=preload href="resources/dummy.css" as=style onload="styleLoaded = true;"> |
@@ -23,6 +24,7 @@ |
<link rel=preload href="/media/sound_5.oga" as=audio onload="audioLoaded = true;"> |
<link rel=preload href="/media/foo.vtt" as=track onload="trackLoaded = true;"> |
<link rel=preload href="resources/dummy.xml?foo=bar" as=foobarxmlthing onload="gibberishLoaded = true;" onerror="gibberishErrored = true;"> |
+<link rel=preload href="resources/dummy.xml?fetch" as=fetch onload="fetchLoaded = true;"> |
<link rel=preload href="resources/dummy.xml" onload="noTypeLoaded = true;"> |
<body> |
<script src="resources/dummy.js?pipe=trickle(d5)"></script> |
@@ -37,8 +39,9 @@ |
assert_true(audioLoaded, "audio triggered load event"); |
assert_true(trackLoaded, "track triggered load event"); |
assert_false(gibberishLoaded, "gibberish as value triggered load event"); |
- assert_true(gibberishErrored, "gibberish as value triggered error event"); |
- assert_true(noTypeLoaded, "empty as triggered load event"); |
+ assert_false(gibberishErrored, "gibberish as value triggered error event"); |
+ assert_true(fetchLoaded, "fetch as value triggered load event"); |
+ assert_false(noTypeLoaded, "empty as triggered load event"); |
t.done(); |
}); |
</script> |