Chromium Code Reviews| Index: LayoutTests/media/video-seek-no-src.html |
| diff --git a/LayoutTests/media/video-seek-no-src-exception.html b/LayoutTests/media/video-seek-no-src.html |
| similarity index 55% |
| rename from LayoutTests/media/video-seek-no-src-exception.html |
| rename to LayoutTests/media/video-seek-no-src.html |
| index 4eccf912728c247296c09c31fdc2788ef9d4ede3..1a2f759cf516136b1e0ac622b8bbda4eb234828a 100644 |
| --- a/LayoutTests/media/video-seek-no-src-exception.html |
| +++ b/LayoutTests/media/video-seek-no-src.html |
| @@ -2,16 +2,17 @@ |
| <body> |
| <video loop controls></video> |
| - |
| - <p>Test that seeking video with no 'src' attribute throws an INVALID_STATE_ERR exception.</p> |
| + |
| + <p>Test that seeking video with no 'src' attribute sets default playback start position to that time.</p> |
| <script src=video-test.js></script> |
| <script> |
| testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); |
| testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); |
| - testDOMException("video.currentTime = 1.1", "DOMException.INVALID_STATE_ERR"); |
| - setTimeout(endTest, 200) |
| + video.currentTime = 1.1; |
| + testExpected("video.currentTime", 1.1); |
| + setTimeout(endTest(), 200); |
|
philipj_slow
2014/09/10 09:57:05
I think the timeout isn't needed, there's nothing
amogh.bihani
2014/09/10 11:18:33
Done.
|
| </script> |
| - |
| + |
| </body> |
| </html> |