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

Side by Side Diff: webkit/data/media/manybear.html

Issue 3038010: Roll webkit DEPS 63669:63692. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: deps Created 10 years, 5 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
« no previous file with comments | « webkit/data/media/bear.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <div id="container"></div> 3 <div id="container"></div>
4 <script> 4 <script>
5 layoutTestController.waitUntilDone(); 5 layoutTestController.waitUntilDone();
6 6
7 var count = 0; 7 var count = 0;
8 var file = "bear_silent.ogv"; 8 var file = "bear_silent.ogv";
9 9
10 function loop() { 10 function loop() {
11 var c = document.getElementById('container'); 11 var c = document.getElementById('container');
12 var v = null; 12 var v = null;
13 13
14 if (c.childNodes != null && c.childNodes.length > 0) { 14 if (c.childNodes != null && c.childNodes.length > 0) {
15 v = c.childNodes[0]; 15 v = c.childNodes[0];
16 } 16 }
17 17
18 // If there is a video tag as child, remove it. 18 // If there is a video tag as child, remove it.
19 if (v) { 19 if (v) {
20 c.removeChild(v); 20 c.removeChild(v);
21 window.setTimeout(function () { loop(); }, 0); 21 window.setTimeout(function () { loop(); }, 0);
22 } else { 22 } else {
23 v = document.createElement("video"); 23 v = document.createElement("video");
24 c.appendChild(v); 24 c.appendChild(v);
25 v.src = file; 25 v.src = file;
26 v.addEventListener("load", function () { loop(); }, false); 26 v.addEventListener("canplaythrough", function () { loop(); }, false);
27 v.load(); 27 v.load();
28 } 28 }
29 29
30 if (count++ == 50) { 30 if (count++ == 50) {
31 layoutTestController.notifyDone(); 31 layoutTestController.notifyDone();
32 } 32 }
33 } 33 }
34 34
35 loop(); 35 loop();
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « webkit/data/media/bear.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698