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

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

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: 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..75564ed58f0db3aa61f5c95f3e012d09fe2a52cb 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
mcasas 2016/11/21 23:19:26 nit: |maxDetectedFaces| and |fastMode| in l.25.
xianglu 2016/11/22 00:59:13 Done.
+// 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