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

Unified Diff: third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html

Issue 1420223002: Disallow assigning a MediaSession after the resource has been selected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html
diff --git a/third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html b/third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html
index 7a2dfff6d5adecc09fe3da6f62116610d1d6290c..4a1599dd5a86baac88b071217953111da12ec154 100644
--- a/third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html
+++ b/third_party/WebKit/LayoutTests/media/mediasession/htmlmediaelement-set-session.html
@@ -22,5 +22,9 @@
mediaElement.session = null;
assert_equals(mediaElement.session, null);
+
+ mediaElement.src = '../resources/test-live.webm';
+ mediaElement.load();
philipj_slow 2015/10/23 11:17:11 Setting the src attribute should (per spec) alread
+ assert_throws("InvalidStateError", function() { mediaElement.session = mediaSession; });
});
</script>

Powered by Google App Engine
This is Rietveld 408576698