OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 | 2 |
3 <!-- READ BEFORE UPDATING: | 3 <!-- READ BEFORE UPDATING: |
4 If this test is updated make sure to increment the "revision" value of the | 4 If this test is updated make sure to increment the "revision" value of the |
5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure | 5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure |
6 that the baseline images are regenerated on the next run. | 6 that the baseline images are regenerated on the next run. |
7 --> | 7 --> |
8 | 8 |
9 <html> | 9 <html> |
10 <head> | 10 <head> |
(...skipping 14 matching lines...) Expand all Loading... |
25 waitForFinish(); | 25 waitForFinish(); |
26 } else { | 26 } else { |
27 video.addEventListener('canplaythrough', waitForFinish, true); | 27 video.addEventListener('canplaythrough', waitForFinish, true); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 function waitForFinish() | 31 function waitForFinish() |
32 { | 32 { |
33 console.log("readyState" + video.readyState); | 33 console.log("readyState" + video.readyState); |
34 if (g_swapsBeforeAck == 0) { | 34 if (g_swapsBeforeAck == 0) { |
35 domAutomationController.setAutomationId(1); | |
36 domAutomationController.send("SUCCESS"); | 35 domAutomationController.send("SUCCESS"); |
37 } else { | 36 } else { |
38 g_swapsBeforeAck--; | 37 g_swapsBeforeAck--; |
39 window.requestAnimationFrame(waitForFinish); | 38 window.requestAnimationFrame(waitForFinish); |
40 } | 39 } |
41 } | 40 } |
42 </script> | 41 </script> |
43 </head> | 42 </head> |
44 <body onload="main()"> | 43 <body onload="main()"> |
45 <div id="container" style="position:absolute; top:0px; left:0px"> | 44 <div id="container" style="position:absolute; top:0px; left:0px"> |
46 <video class="nomargin" id="video"> | 45 <video class="nomargin" id="video"> |
47 <source src="/media/test/data/bear-vp9.webm" type="video/webm"> | 46 <source src="/media/test/data/bear-vp9.webm" type="video/webm"> |
48 </video> | 47 </video> |
49 </div> | 48 </div> |
50 </body> | 49 </body> |
51 </html> | 50 </html> |
OLD | NEW |