Chromium Code Reviews| Index: LayoutTests/media/video-durationchange-on-ended.html |
| diff --git a/LayoutTests/media/video-durationchange-on-ended.html b/LayoutTests/media/video-durationchange-on-ended.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7cccd7a7b38c325e379cfc6843cf96e79a1731d3 |
| --- /dev/null |
| +++ b/LayoutTests/media/video-durationchange-on-ended.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE html> |
| +<html> |
| + <head> |
| + <script src=video-test.js></script> |
| + </head> |
| + <body> |
| + <video id="video"></video> |
| + <p>Verify there is a 'durationchange' event just before 'ended' event if the initially reported duration exceeds the actual data.</p> |
| + <script> |
| + waitForEvent('durationchange'); |
|
philipj_slow
2014/12/10 22:59:14
Put these in the end, that seems more obvious and
Srirama
2014/12/11 06:43:57
Moved the events down.
Verified duration change wi
|
| + waitForEventAndEnd('ended'); |
| + video = document.getElementById('video'); |
|
philipj_slow
2014/12/10 22:59:14
This is OK, but you can just document.createElemen
Srirama
2014/12/11 06:43:57
Done.
|
| + video.src = "content/truncated.webm"; |
| + video.play(); |
| + </script> |
| + </body> |
| +</html> |