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

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

Issue 2527503003: FaceDetector: Pass |options| to parent constructor (Closed)
Patch Set: reillyg@ and haraken@ comments 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/FaceDetector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index aa6165f2c764631abc01b0475e8519a45da6f046..fca22b43b8733a8817888787d4a06783296d0f7d 100644
--- a/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html
+++ b/third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html
@@ -18,17 +18,13 @@ async_test(function(t) {
.catch(error => {
assert_unreached("Error creating MockShapeDetection: " + error);
})
- .then(detectorWithDefault => {
- return detectorWithDefault.detect(img);
- })
+ .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 => {
- return detectorWithOptions.detect(img)
- })
+ .then(detectorWithOptions => detectorWithOptions.detect(img))
.then(t.step_func(faceDetectionResult => {
assert_equals(theMock.getMaxDetectedFaces(), 7, "maxDetectedFaces");
assert_equals(theMock.getFastMode(), true, "maxDetectedFaces");
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/FaceDetector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698