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

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

Issue 2732853003: [preload] Split up media into video, audio and track (Closed)
Patch Set: Added a test that media fails Created 3 years, 9 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/onload_event.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/onload_event.html b/third_party/WebKit/LayoutTests/http/tests/preload/onload_event.html
deleted file mode 100644
index 7ff00bc420bebb156ff02e404f5b2e09019c6731..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/preload/onload_event.html
+++ /dev/null
@@ -1,46 +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 onload event');
- var scriptLoaded = false;
- var styleLoaded = false;
- var imageLoaded = false;
- var fontLoaded = false;
- var videoLoaded = false;
- var audioLoaded = false;
- var trackLoaded = false;
- var gibberishLoaded = false;
- var gibberishErrored = false;
- var noTypeLoaded = 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;">
-<link rel=preload href="../resources/square.png" as=image onload="imageLoaded = true;">
-<link rel=preload href="../resources/Ahem.ttf" as=font crossorigin onload="fontLoaded = true;">
-<link rel=preload href="../resources/test.mp4" as=media onload="videoLoaded = true;">
-<link rel=preload href="../resources/test.oga" as=media onload="audioLoaded = true;">
-<link rel=preload href="../security/resources/captions.vtt" as=track onload="trackLoaded = true;">
-<link rel=preload href="../resources/dummy.xml" as=foobarxmlthing onload="gibberishLoaded = true;" onerror="gibberishErrored = true;">
-<link rel=preload href="../resources/dummy.xml" onload="noTypeLoaded = true;">
-<script src="../resources/slow-script.pl?delay=500"></script>
-<script>
- window.onload = t.step(function(){
- assert_true(styleLoaded, "style triggered load event");
- assert_true(scriptLoaded, "script triggered load event");
- assert_true(imageLoaded, "image triggered load event");
- assert_true(fontLoaded, "font triggered load event");
- assert_true(videoLoaded, "video triggered load event");
- 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");
- t.done();
- });
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698