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

Unified Diff: LayoutTests/media/autoplay-with-preload-none.html

Issue 313963004: Don't delay loading if autoplay is set and preload equals 'none'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/media/autoplay-with-preload-none-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/autoplay-with-preload-none.html
diff --git a/LayoutTests/media/autoplay.html b/LayoutTests/media/autoplay-with-preload-none.html
similarity index 82%
copy from LayoutTests/media/autoplay.html
copy to LayoutTests/media/autoplay-with-preload-none.html
index ca59be325e0c3c18f55759b24e6354649e8b6360..732295c2d7610ba02686e6fb846c2a88dc977e2e 100644
--- a/LayoutTests/media/autoplay.html
+++ b/LayoutTests/media/autoplay-with-preload-none.html
@@ -1,6 +1,5 @@
<!doctype html>
-<!-- original: https://github.com/w3c/web-platform-tests/blob/6b3893bb99f70e4238011dbcd1f380891e89ec5e/html/semantics/embedded-content-0/media-elements/autoplay.html -->
-<title>autoplay</title>
+<title>autoplay with preload set to none.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="media-file.js"></script>
@@ -12,6 +11,7 @@ function autoplay_test(tagName, src)
{
var e = document.createElement(tagName);
e.src = src;
+ e.preload = "none";
e.autoplay = true;
var actual_events = [];
var expected_events = ['canplay', 'play', 'playing', 'canplaythrough'];
@@ -28,7 +28,7 @@ function autoplay_test(tagName, src)
}
}));
});
- }, tagName + '.autoplay');
+ }, tagName + '.autoplay with preload="none"');
}
autoplay_test('audio', findMediaFile('audio', 'content/test'));
« no previous file with comments | « no previous file | LayoutTests/media/autoplay-with-preload-none-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698