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

Unified Diff: third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html

Issue 1966083003: ImageCapture: takePhoto() mock LayoutTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mlamouri@ comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html
diff --git a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html b/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html
deleted file mode 100644
index e6476b795b8c0f3aa1e3b8fac5c7c406092e484c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-takePhoto.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<script src=../../resources/testharness.js></script>
-<script src=../../resources/testharnessreport.js></script>
-<body>
-<canvas id='canvas0' width=10 height=10/>
-</body>
-<script>
-
-// This test verifies ImageCapture's takePhoto().
-
-var test = async_test(function() {
- var canvas0 = document.getElementById('canvas0');
- var context0 = canvas0.getContext("2d");
- context0.fillStyle = "red";
- context0.fillRect(0, 0, 10, 10);
-
- var stream = canvas0.captureStream();
-
- var capturer = new ImageCapture(stream.getVideoTracks()[0]);
-
- capturer.takePhoto()
- .then(blob => {
- assert_unreached('takePhoto() should not have been resolved');
- })
- .catch(error => {
- // LayoutTests do not have a real or a fake camera whatsoever, so content
- // will not find a matching device for the Track's source id, and the
- // promise will be rejected.
- // TODO(mcasas): Revisit all this when https://crbug.com/610333 is solved.
- this.done();
- });
-}, 'exercises the ImageCapture API takePhoto().');
-
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698