4 <script src=
"media-file.js"></script>
5 <script src=
"video-paint-test.js"></script>
8 <p>Test overlay cast button rendering on light background.
</p>
13 <video style=
"width: 320px;"></video>
16 <video style=
"position: absolute; width: 320px;"></video>
20 window
.internals
.settings
.setMockScrollbarsEnabled(true);
22 var videos
= document
.getElementsByTagName('video');
23 waitForMultipleEvents("canplaythrough", videos
.length
, function() {
24 for (var i
= 0; i
< videos
.length
; ++i
) {
26 videos
[i
].addEventListener("playing", function(event
) {
28 event
.target
.currentTime
= 0;
30 internals
.mediaPlayerRemoteRouteAvailabilityChanged(event
.target
, true);
33 waitForMultipleEvents("seeked", videos
.length
, function() {
34 if (window
.testRunner
)
35 testRunner
.notifyDone();
38 setSrcByTagName('video', findMediaFile('video', 'content/counting'));