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

Side by Side Diff: chrome/test/data/prerender/prerender_html5_video_script.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 Andrew's comments Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test checks that prerender is cancelled when an video starts playing 3 This test checks that prerender is cancelled when an video starts playing
scherkus (not reviewing) 2011/10/05 20:21:58 ditto on updating docs
Shishir 2011/10/20 21:20:39 Done.
4 through javascript. 4 through javascript.
5 --> 5 -->
6 <head> 6 <head>
7 <title>Prerender cancellation for HTML5 video.</title> 7 <title>Prerender cancellation for HTML5 video.</title>
8
9 <script>
10 function DidPrerenderPass() {
11 return true;
12 }
13 function DidDisplayPass() {
14 return true;
15 }
16 </script>
8 </head> 17 </head>
9 <body> 18 <body>
10 <div id="vid"> 19 <div id="vid">
11 </div> 20 </div>
12 21
13 <script> 22 <script>
14 var videoTag = document.createElement("video"); 23 var videoTag = document.createElement("video");
15 videoTag.src = "nonexistant.mp4"; 24 videoTag.src = "nonexistant.mp4";
16 var element = document.getElementById("vid"); 25 var element = document.getElementById("vid");
17 element.appendChild(videoTag); 26 element.appendChild(videoTag);
scherkus (not reviewing) 2011/10/05 20:21:58 you should consider adding a test that makes sure
Shishir 2011/10/20 21:20:39 Done.
18 </script> 27 </script>
19 </body> 28 </body>
20 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698