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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/preload/onerror_event.html

Issue 2903653005: [preload] Mandatory `as` value and related spec alignments (Closed)
Patch Set: IDL changes Created 3 years, 7 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
Index: third_party/WebKit/LayoutTests/http/tests/preload/onerror_event.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/onerror_event.html b/third_party/WebKit/LayoutTests/http/tests/preload/onerror_event.html
deleted file mode 100644
index 802e2d6a38412cef0af81bfa69ae230dbb750ee0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/preload/onerror_event.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head></head>
-<body>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script>
- var t = async_test('Makes sure that preloaded resources trigger the onerror event');
- var scriptFailed = false;
- var styleFailed = false;
- var imageFailed = false;
- var fontFailed = false;
- var videoFailed = false;
- var audioFailed = false;
- var trackFailed = false;
- var gibrishFailed = false;
- var noTypeFailed = false;
-</script>
-<link rel=preload href="../non-existent/dummy.js" as=script onerror="scriptFailed = true;">
-<link rel=preload href="../non-existent/dummy.css" as=style onerror="styleFailed = true;">
-<link rel=preload href="../non-existent/square.png" as=image onerror="imageFailed = true;">
-<link rel=preload href="../non-existent/Ahem.ttf" as=font crossorigin onerror="fontFailed = true;">
-<link rel=preload href="../non-existent/test.mp4" as=video onerror="videoFailed = true;">
-<link rel=preload href="../non-existent/test.oga" as=audio onerror="audioFailed = true;">
-<link rel=preload href="../non-existent/security/captions.vtt" as=track onerror="trackFailed = true;">
-<link rel=preload href="../non-existent/dummy.xml" as=foobarxmlthing onerror="gibrishFailed = true;">
-<link rel=preload href="../non-existent/dummy.xml" onerror="noTypeFailed = true;">
-<script src="../resources/slow-script.pl?delay=500"></script>
-<script>
- window.onload = t.step(function(){
- assert_true(styleFailed, "style triggered error event");
- assert_true(scriptFailed, "script triggered error event");
- assert_true(imageFailed, "image triggered error event");
- assert_true(fontFailed, "font triggered error event");
- assert_true(videoFailed, "video triggered error event");
- assert_true(audioFailed, "audio triggered error event");
- assert_true(trackFailed, "track triggered error event");
- assert_true(gibrishFailed, "gibrish as value triggered error event");
- assert_true(noTypeFailed, "empty as triggered error event");
- t.done();
- });
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698