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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediacapturefromelement/HTMLMediaElementCapture-EME-content.html

Issue 1599533003: MediaCaptureFromElement: add support for audio captureStream(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using refptr iso WeakPtr Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src=../../resources/testharness.js></script>
3 <script src=../../resources/testharnessreport.js></script>
4 <script>
5
6 // Run createStream() on a <video> source with protected content.
7
8 test(function() {
9 var video = document.createElement('video');
10
11 assert_equals(video.error, null);
12 assert_equals(video.mediaKeys, null);
13 video.onencrypted = this.step_func_done();
14
15 navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).then(function(a ccess) {
16 return access.createMediaKeys();
17 }).then(function(mediaKeys) {
18 return video.setMediaKeys(mediaKeys);
19 }).then(function(result) {
20 video.src = "../../media/content/test-encrypted.webm";
21 assert_throws("NotSupportedError",
22 function() { var stream = video.captureStream(); },
23 "Cannot create a captureStream() out of a protected <video>");
24 });
25
26 }, 'check <video> captureStream() fails on an encrypted/protected media');
27
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698