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

Unified Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html

Issue 2414983002: EME: Fail if unsupported sessionTypes are provided (Closed)
Patch Set: Created 4 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
« no previous file with comments | « media/blink/key_system_config_selector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html
index 3b053185789cf91bc65790815b548ffaf09e9699..a9b85da30a5f48dfb15dc5ee5964ae0fa9de27db 100644
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html
+++ b/third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html
@@ -312,6 +312,23 @@
expect_error('org.w3.clearkey', [{
videoCapabilities: [{contentType: 'video/webm; codecs=",vp8,"'}],
}], 'NotSupportedError', 'Leading and trailing , in codecs');
+
+ // Verify 'temporary' sessionType.
+ expect_config('org.w3.clearkey', [{
+ sessionTypes: [ 'temporary' ]
+ }], {
+ sessionTypes: [ 'temporary' ]
+ }, 'temporary sessionType');
+
+ // Clear Key doesn't support persistent sessions.
+ expect_error('org.w3.clearkey', [{
+ sessionTypes: [ 'persistent-license' ]
+ }], 'NotSupportedError', 'persistent-license sessionType');
+
+ // Verify invalid sessionTypes.
+ expect_error('org.w3.clearkey', [{
+ sessionTypes: [ 'foo' ]
+ }], 'NotSupportedError', 'invalid sessionType');
</script>
</body>
</html>
« no previous file with comments | « media/blink/key_system_config_selector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698