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

Unified Diff: LayoutTests/media/video-seek-no-src.html

Issue 517593003: Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fast-Forward to origin/master and rebase 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
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>

Powered by Google App Engine
This is Rietveld 408576698