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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-getSettings.html

Issue 2766473002: Image Capture: wire getSettings() from MediaStreamTrack (Closed)
Patch Set: reillyg@s comments Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src=../../resources/testharness.js></script>
3 <script src=../../resources/testharnessreport.js></script>
4 <body>
5 <canvas id='canvas' width=10 height=10/>
6 </body>
7 <script>
8
9 // This test verifies that MediaStreamTrack.getSettings() exists and that it
10 // returns something. Other tests go deeper.
11 test(function() {
12 var canvas = document.getElementById('canvas');
13 var context = canvas.getContext("2d");
14 context.fillStyle = "red";
15 context.fillRect(0, 0, 10, 10);
16
17 var stream = canvas.captureStream();
18 assert_equals(stream.getAudioTracks().length, 0);
19 assert_equals(stream.getVideoTracks().length, 1);
20
21 var videoTrack = stream.getVideoTracks()[0];
22
23 assert_equals(typeof videoTrack.getSettings, 'function');
24
25 settings = videoTrack.getSettings();
26 assert_equals(typeof settings, 'object');
27 }, 'MediaStreamTrack.getSettings()');
28
29 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698