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

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

Issue 2857803002: Shape Detection: reconnect LayoutTests (Closed)
Patch Set: Removed expectation files and corrected shapedetection-empty-input test Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shapedetection/detection-ImageData.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « third_party/WebKit/LayoutTests/shapedetection/detection-ImageData.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698