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

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

Issue 2773593004: Image Capture: prune Photo{Capabilities/Settings} and add MediaTrackConstraintSet.pointsOfInterest (Closed)
Patch Set: reillyg@ comments on idl urls. 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/mock-imagecapture.js"></script> 5 <script src="resources/mock-imagecapture.js"></script>
6 <body> 6 <body>
7 <canvas id='canvas' width=10 height=10/> 7 <canvas id='canvas' width=10 height=10/>
8 </body> 8 </body>
9 <script> 9 <script>
10 10
11 const meteringModeNames = ["none", "manual", "single-shot", "continuous"]; 11 const meteringModeNames = ["none", "manual", "single-shot", "continuous"];
12 const fillLightModeNames = ["none", "off", "auto", "flash", "torch"];
13 12
14 // This test verifies that MediaTrackCapabilities are returned upon 13 // This test verifies that MediaTrackCapabilities are returned upon
15 // MediaStreamTrack.getCapabilities(), with a mock Mojo service implementation. 14 // MediaStreamTrack.getCapabilities(), with a mock Mojo service implementation.
16 15
17 async_test(function(t) { 16 async_test(function(t) {
18 var canvas = document.getElementById('canvas'); 17 var canvas = document.getElementById('canvas');
19 var context = canvas.getContext("2d"); 18 var context = canvas.getContext("2d");
20 context.fillStyle = "red"; 19 context.fillStyle = "red";
21 context.fillRect(0, 0, 10, 10); 20 context.fillRect(0, 0, 10, 10);
22 21
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 t.done(); 129 t.done();
131 }, 100); 130 }, 100);
132 }, 131 },
133 error => { 132 error => {
134 assert_unreached("Error creating MockImageCapture: " + error); 133 assert_unreached("Error creating MockImageCapture: " + error);
135 }) 134 })
136 135
137 }, 'exercises MediaStreamTrack.getCapabilities()'); 136 }, 'exercises MediaStreamTrack.getCapabilities()');
138 137
139 </script> 138 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698