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

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

Issue 1605503002: Added tests for more preload as values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html b/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
index 059bb8bda42c95815b9e7b2f9bb9c4a586ec3181..a2eae135fbc93ad5a37915e7fa3f16de9336220d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
+++ b/third_party/WebKit/LayoutTests/http/tests/preload/single_download_preload.html
@@ -9,6 +9,11 @@
<link rel=preload href="../resources/square.png" as=image>
<link rel=preload href="../resources/square.png?background" as=image>
<link rel=preload href="../resources/Ahem.ttf" as=font crossorigin>
+<link rel=preload href="../resources/test.mp4" as=video>
+<link rel=preload href="../resources/test.oga" as=audio>
+<link rel=preload href="../resources/security/captions.vtt" as=track>
+<link rel=preload href="../resources/dummy.xml" as=foobarxmlthing>
+<link rel=preload href="../resources/dummy.xml">
<script src="../resources/slow-script.pl?delay=200"></script>
<style>
#background {
@@ -26,9 +31,17 @@
<script src="../resources/dummy.js"></script>
<div id="background"></div>
<img src="../resources/square.png">
+<video src="../resources/test.mp4">
+ <track kind=subtitles src="../resources/security/captions.vtt" srclang=en>
+</video>
+<audio src="../resources/test/oga"></audio>
<script>
+ var xhr = new XMLHttpRequest();
+ xhr.open("GET", "../resources/dummy.xml");
+ xhr.send();
+
window.addEventListener("load", t.step_func(function() {
- assert_equals(performance.getEntriesByType("resource").length, 8);
+ assert_equals(performance.getEntriesByType("resource").length, 12);
t.done();
}));
</script>

Powered by Google App Engine
This is Rietveld 408576698