Index: third_party/WebKit/LayoutTests/shapedetection/detection-security-test.html |
diff --git a/third_party/WebKit/LayoutTests/shapedetection/detection-security-test.html b/third_party/WebKit/LayoutTests/shapedetection/detection-security-test.html |
index 6d2689cb7bf8bebb5c283e906fe98f95f7881eef..5f5f8de59aa803b65b2c7d7637d5905155978a59 100644 |
--- a/third_party/WebKit/LayoutTests/shapedetection/detection-security-test.html |
+++ b/third_party/WebKit/LayoutTests/shapedetection/detection-security-test.html |
@@ -40,13 +40,14 @@ var createTestForBadImage = function(createDetector) { |
.then(function(error) { |
assert_equals(error.name, "InvalidStateError"); |
}); |
- }, "Detector should reject undecodable images with an InvalidStateError."); |
+ }); |
}; |
+// Detectors should reject undecodable images with an InvalidStateError. |
generate_tests(createTestForBadImage, [ |
- [ "Face", () => { return new FaceDetector(); } ], |
- [ "Barcode", () => { return new BarcodeDetector(); } ], |
- [ "Text", () => { return new TextDetector(); } ] |
+ [ "Face - detect(broken image)", () => { return new FaceDetector(); } ], |
+ [ "Barcode - detect(broken image)", () => { return new BarcodeDetector(); } ], |
+ [ "Text - detect(broken image)", () => { return new TextDetector(); } ] |
]); |
// This test verifies that a Detector will reject a broken video. |
@@ -58,13 +59,14 @@ var createTestForBadVideo = function(createDetector) { |
.then(function(error) { |
assert_equals(error.name, "InvalidStateError"); |
}); |
- }, "Detector should reject undecodable videos with an InvalidStateError."); |
+ }); |
}; |
+// Detectors should reject undecodable videos with an InvalidStateError. |
generate_tests(createTestForBadVideo, [ |
- [ "Face", () => { return new FaceDetector(); } ], |
- [ "Barcode", () => { return new BarcodeDetector(); } ], |
- [ "Text", () => { return new TextDetector(); } ] |
+ [ "Face - detect(broken video)", () => { return new FaceDetector(); } ], |
+ [ "Barcode - detect(broken video)", () => { return new BarcodeDetector(); } ], |
+ [ "Text - detect(broken video)", () => { return new TextDetector(); } ] |
]); |
</script> |