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> |