| Index: third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html
|
| index 56def7be6c874f4e4374539ff0a9b73bf52fb375..9fdfd5bc106630f5135a8ff0c4266c97d673c046 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-security-test.html
|
| @@ -3,9 +3,6 @@
|
| <script src=../../resources/testharnessreport.js></script>
|
| <script>
|
|
|
| -// TODO(xianglu): Consider adding tests for image with only one dimension
|
| -// equal to zero.
|
| -
|
| // Returns a Promise that is resolve()d if detect() fails.
|
| function detectFaceAndExpectError(imageUrl) {
|
| return new Promise(function(resolve, reject) {
|
| @@ -26,15 +23,6 @@ function detectFaceAndExpectError(imageUrl) {
|
| });
|
| }
|
|
|
| -// This test verifies that FaceDetector will reject an empty image.
|
| -promise_test(function(t) {
|
| - return detectFaceAndExpectError("")
|
| - .then(function(error) {
|
| - assert_equals(error.name, "InvalidStateError");
|
| - assert_equals(error.message, "HTMLImageElement is empty.");
|
| - });
|
| -}, "FaceDetector should reject empty images with InvalidStateError.");
|
| -
|
| // This test verifies that FaceDetector will reject an undecodable image.
|
| promise_test(function(t) {
|
| return detectFaceAndExpectError("../../imported/wpt/images/broken.png")
|
|
|