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

Unified Diff: chrome/test/data/prerender/prerender_html5_audio_autoplay.html

Issue 8095007: Defer loading of audio/video tags while prerendering. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding "+webkit/media" to chrome/renderer/DEFS. Created 9 years, 1 month 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: chrome/test/data/prerender/prerender_html5_audio_autoplay.html
diff --git a/chrome/test/data/prerender/prerender_html5_audio_autoplay.html b/chrome/test/data/prerender/prerender_html5_audio_autoplay.html
new file mode 100644
index 0000000000000000000000000000000000000000..40c9bee9d094fb653b88072fff702585532d2913
--- /dev/null
+++ b/chrome/test/data/prerender/prerender_html5_audio_autoplay.html
@@ -0,0 +1,23 @@
+<html>
+ <!--
+ This test checks that:
+ - Audio tags are deferred during prerendering.
+ - The audio starts playing on page swap in when autoplay is set.
+ -->
+<head>
+<title>Prerender for HTML5 audio.</title>
+</head>
+
+<body>
+<audio id="mediaEl" src="bear.wav" controls autoplay>
+</audio>
+
+<script>
+ var willPlay = true;
+ var testNetworkEvents = false;
+</script>
+
+<script src="prerender_html5_common.js"></script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698