Index: LayoutTests/media/video-seekable.html |
diff --git a/LayoutTests/media/video-seekable.html b/LayoutTests/media/video-seekable.html |
index 160ebaeeeadf6ed854b1761035f7a79f56f5538a..440ead4e1f2778c61605c3701167c0b654196d3f 100644 |
--- a/LayoutTests/media/video-seekable.html |
+++ b/LayoutTests/media/video-seekable.html |
@@ -7,12 +7,13 @@ |
testDOMException("video.seekable.end(-1)", "DOMException.INDEX_SIZE_ERR"); |
testDOMException("video.seekable.start(0)", "DOMException.INDEX_SIZE_ERR"); |
testDOMException("video.seekable.end(0)", "DOMException.INDEX_SIZE_ERR"); |
- waitForEvent('canplaythrough', |
- function () |
+ waitForEvent("loadedmetadata", |
+ function () |
{ |
testExpected("video.seekable.length", 1); |
testExpected("video.seekable.start(0)", 0); |
- testExpected("video.seekable.end(0)", 0, ">"); |
+ testExpected("video.seekable.end(0)", 5, ">"); |
+ testExpected("video.seekable.end(0)", 7, "<"); |
testDOMException("video.seekable.start(-1)", "DOMException.INDEX_SIZE_ERR"); |
testDOMException("video.seekable.end(-1)", "DOMException.INDEX_SIZE_ERR"); |
testDOMException("video.seekable.start(1)", "DOMException.INDEX_SIZE_ERR"); |