OLD | NEW |
---|---|
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> |
OLD | NEW |