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

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

Issue 8095007: Defer loading of audio/video tags while prerendering. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressing Dominic's comments. 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.html
diff --git a/chrome/test/data/prerender/prerender_html5_audio.html b/chrome/test/data/prerender/prerender_html5_audio.html
index 7a03e20c15d4fa47389f09b3f2eae20c6d316936..4b50ac489efd3045cbf3d4b3e077c8068704bfc9 100644
--- a/chrome/test/data/prerender/prerender_html5_audio.html
+++ b/chrome/test/data/prerender/prerender_html5_audio.html
@@ -1,14 +1,20 @@
<html>
<!--
- This test checks that prerender is cancelled when an audio tag is
- encountered.
+ This test checks that audio tags are deferred during prerendering.
-->
- <head>
- <title>Prerender cancellation for HTML5 audio.</title>
- </head>
- <body>
- <audio controls="controls" autoplay="autoplay">
- <source src="nonexistant.wav" type="audio/wav" />
- </audio>
- </body>
+<head>
+<title>Prerender for HTML5 audio.</title>
+</head>
+
+<body>
+<audio id="mediaEl" src="bear.wav" controls>
+</audio>
+
+<script>
+ var willPlay = false;
+</script>
+
+<script src="prerender_html5_common.js"></script>
+
+</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698