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

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: 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..c70a8c80642e9da3a8ec03f3044dc6f58a4d6ed9 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);
+ endTest();
</script>
-
+
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698