Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html |
| diff --git a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html |
| index cfbb98545f88382b7e2652e99d60ef86d629eab0..6fa0060b9fbd8fea360dc7344e2d4d3ced09f2a5 100644 |
| --- a/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html |
| +++ b/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html |
| @@ -52,6 +52,13 @@ async_test(function(t) { |
| var stream = canvas.captureStream(); |
| videoTrack = stream.getVideoTracks()[0]; |
| + // |videoTrack|s capabilities, just like the actual capture, is a process |
| + // kicked right after creation, we introduce a small delay to allow for |
|
Reilly Grant (use Gerrit)
2017/04/14 19:46:17
same here
mcasas
2017/04/14 21:21:27
Done.
|
| + // those to be collected. |
| + // TODO(mcasas): this shouldn't be needed, https://crbug.com/711524. |
| + return new Promise((resolve) => setTimeout(resolve, 100)); |
| + }) |
| + .then(function() { |
| return videoTrack.applyConstraints(constraints); |
| }) |
| .then(function() { |