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

Unified Diff: third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: 80 cols 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/fast/shapedetection/shapedetection-creation.html
diff --git a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
index fcf6d531874b7faceee24275c205ff5dfc23d288..3569b4fb7e7827fa550bc02003abcdbc09454925 100644
--- a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
+++ b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
@@ -13,7 +13,20 @@ test(function() {
test(function() {
var faceDetector = new FaceDetector();
assert_true(faceDetector instanceof FaceDetector);
-}, 'FaceDetector instance can be created.');
+}, 'FaceDetector instance can be created with no argument.');
+
+// This test verifies that FaceDetector can be created with |maxDetectedFaces|
+// argument
+test(function() {
+ var faceDetector = new FaceDetector({maxDetectedFaces: 5});
+ assert_true(faceDetector instanceof FaceDetector);
+}, 'FaceDetector instance can be created with maxDetectedFaces.');
+
+// This test verifies that FaceDetector can be created with |fastMode| argument
+test(function() {
+ var faceDetector = new FaceDetector({fastMode: true});
+ assert_true(faceDetector instanceof FaceDetector);
+}, 'FaceDetector instance can be created with fastMode.');
// This test verifies that DetectedBarcode can be created
test(function() {

Powered by Google App Engine
This is Rietveld 408576698