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

Unified Diff: content/test/data/media/face_detection_test.html

Issue 2711893003: Shape detection: moar content_browsertests (face, qr/barcode) (Closed)
Patch Set: Make initialization of std::vector<std::vector<float>> explicit to avoid 'error: chosen constructor… Created 3 years, 10 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 | « content/test/BUILD.gn ('k') | content/test/data/media/shape_detection_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/face_detection_test.html
diff --git a/content/test/data/media/face_detection_test.html b/content/test/data/media/face_detection_test.html
deleted file mode 100644
index 16b5dd73cb5c4ecbf979cab6dfec5d6460afb773..0000000000000000000000000000000000000000
--- a/content/test/data/media/face_detection_test.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-
-<body>
- <img id="myImage">
-</body>
-
-<script>
- var img = document.getElementById("myImage");
-
- function detectFacesOnImageUrl(url) {
- img.src = url;
- img.onload = function() {
- var detector = new FaceDetector();
- var results = "";
- detector.detect(img)
- .then(detectedFaces => {
- for (var i = 0; i < detectedFaces.length; i++) {
- var boundingBox = detectedFaces[i].boundingBox;
- var result = boundingBox.x + "," + boundingBox.y + "," +
- boundingBox.width + "," + boundingBox.height;
- results += result + "#";
- }
- window.domAutomationController.send(results);
- })
- .catch(error => {
- error = new Error("Error during detection:" + error.message);
- window.domAutomationController.send(error.message);
- });
- }
- }
- </script>
-</html>
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/data/media/shape_detection_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698