Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: LayoutTests/media/video-seekable.html

Issue 607493002: Introduce WebMediaPlayer::seekable() to replace maxTimeSeekable() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/video-seekable-expected.txt » ('j') | public/platform/WebMediaPlayer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | LayoutTests/media/video-seekable-expected.txt » ('j') | public/platform/WebMediaPlayer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698