| <title>Replacing Contents Clipped</title> |
| <script src="../../media/media-file.js"></script> |
| window.testRunner.dumpAsText(true); |
| window.testRunner.waitUntilDone(); |
| video = document.getElementsByTagName('video')[0]; |
| video.addEventListener('canplaythrough', canplaythrough); |
| video.src = findMediaFile('video', '../../media/content/counting'); |
| function canplaythrough() { |
| video.src = findMediaFile('video', '../../media/content/test'); |
| setTimeout(function() { testRunner.notifyDone(); }, 250); |
| <body onload="runTest()"> |
| <button onclick="runTest()">run test</button><br> |