| Index: third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html
|
| index 10e9c54d246fe708abd01a86179851039732dca5..7f62e5c8f7cf51e256a15f615b4bd83a383508f2 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-empty-input.html
|
| @@ -5,21 +5,21 @@
|
|
|
| // This test verifies FaceDetector.detect() with an empty HTMLImageElement.
|
| async_test(function(t) {
|
| - var image = new Image();
|
| - var faceDetector = new FaceDetector();
|
| - var tryFaceDetection = function() {
|
| - faceDetector.detect(image)
|
| - .then(faceDetectionResult => {
|
| - assert_equals(faceDetectionResult.length, 0);
|
| - t.done();
|
| - })
|
| - .catch(error => {
|
| - assert_unreached("detect() should not reject: " + error)
|
| - });
|
| - };
|
| - image.onload = tryFaceDetection;
|
| - image.onerror = tryFaceDetection;
|
| - image.src = "";
|
| + var image = new Image();
|
| + var faceDetector = new FaceDetector();
|
| + var tryFaceDetection = function() {
|
| + faceDetector.detect(image)
|
| + .then(faceDetectionResult => {
|
| + assert_equals(faceDetectionResult.length, 0);
|
| + t.done();
|
| + })
|
| + .catch(error => {
|
| + assert_unreached("detect() rejected with error: " + error)
|
| + });
|
| + };
|
| + image.onload = tryFaceDetection;
|
| + image.onerror = tryFaceDetection;
|
| + image.src = "";
|
| }, "FaceDetector should resolve empty images with empty results.");
|
|
|
| </script>
|
|
|