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

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

Issue 2448193002: ShapeDetection: support CanvasImageSource as detect() source (Closed)
Patch Set: esprehn@ comments and specific LayoutTest for empty HTMLImageElement Created 4 years, 2 months 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-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")

Powered by Google App Engine
This is Rietveld 408576698