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

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: Syncing with depot. 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..c016092e555ce3d2b76b60f2bbe10e39dae80e5a 100644
--- a/chrome/test/data/prerender/prerender_html5_audio.html
+++ b/chrome/test/data/prerender/prerender_html5_audio.html
@@ -1,14 +1,21 @@
<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" controls>
+ <source src="bear.wav" type="audio/wav" />
scherkus (not reviewing) 2011/11/08 06:21:06 nit: for this and the rest of the files just inlin
Shishir 2011/11/09 22:27:47 Done.
+</audio>
+
+<script>
+ var willPlay = false;
+</script>
+
+<script src="prerender_html5_common.js"></script>
+
+</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698