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

Unified Diff: third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html

Issue 2522143002: ShapeDetection: split mojom into face and barcode interfaces (Closed)
Patch Set: Smart rebase to https://crrev.com/2527503003 (FaceDetectorOptions) Created 4 years, 1 month 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
Index: third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html
diff --git a/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html b/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html
deleted file mode 100644
index fca22b43b8733a8817888787d4a06783296d0f7d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/mojo-helpers.js"></script>
-<script src="resources/mock-shapedetection.js"></script>
-<body>
-<img id='img' src='../media/content/greenbox.png'/>
-</body>
-<script>
-async_test(function(t) {
- var img = document.getElementById("img");
- var theMock = null;
- mockShapeDetectionReady
- .then(mock => {
- theMock = mock;
- return new FaceDetector();
- })
- .catch(error => {
- assert_unreached("Error creating MockShapeDetection: " + error);
- })
- .then(detectorWithDefault => detectorWithDefault.detect(img))
- .then(t.step_func(faceDetectionResult => {
- assert_equals(theMock.getMaxDetectedFaces(), 10, "default maxDetectedFaces");
- assert_equals(theMock.getFastMode(), false, "default maxDetectedFaces");
- return new FaceDetector({maxDetectedFaces: 7, fastMode: true});
- }))
- .then(detectorWithOptions => detectorWithOptions.detect(img))
- .then(t.step_func(faceDetectionResult => {
- assert_equals(theMock.getMaxDetectedFaces(), 7, "maxDetectedFaces");
- assert_equals(theMock.getFastMode(), true, "maxDetectedFaces");
- t.done();
- }))
- .catch(error => {
- assert_unreached("Error creating detectors: " + error);
- });
-}, "Test that FaceDetectionOptions are correctly propagated");
-</script>

Powered by Google App Engine
This is Rietveld 408576698