commit-queue@webkit.org | 905d2cb | 2014-02-15 18:00:22 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script src=media-file.js></script> |
| 5 | <script src=video-test.js></script> |
| 6 | <script> |
| 7 | function start() |
| 8 | { |
| 9 | findMediaElement(); |
| 10 | video.src = findMediaFile("video", "content/test"); |
| 11 | waitForEventOnce('canplaythrough', canPlayThrough); |
| 12 | } |
| 13 | |
| 14 | function canPlayThrough() |
| 15 | { |
| 16 | testDOMException("video.currentTime = 3", "DOMException.INVALID_STATE_ERR"); |
| 17 | endTest(); |
| 18 | } |
| 19 | </script> |
| 20 | </head> |
| 21 | <body onload="start()"> |
| 22 | <video mediaGroup="group" controls></video> |
| 23 | <p>Test that seeking video with media controller throws invalid state exception.</p> |
| 24 | </body> |
| 25 | </html> |