ace3320b7f2c7c98c432cd52ddf0ade30d3f4c9e
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / resources / media-testing.js
1
2 if (window.testRunner)
3     testRunner.waitUntilDone();
4
5 function setupVideo(videoElement, videoPath, canPlayThroughCallback)
6 {
7     var mediaFile = findMediaFile("video", videoPath);
8     videoElement.addEventListener("canplaythrough", canPlayThroughCallback);
9     videoElement.src = mediaFile;
10 }