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

Unified Diff: third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.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
Index: third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html
diff --git a/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html b/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html
index 4edb7293b7103ff8b7e5dd2be3f0f0089e3e0b90..f5f692ce20589a1744e057d39713e62428878d4e 100644
--- a/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html
+++ b/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html
@@ -42,7 +42,7 @@ var createTestForCanvasElement = function(createDetector,
}
img.src = "../media/content/greenbox.png";
- }, "Detector detect(HTMLCanvasElement)");
+ });
};
function FaceDetectorDetectionResultTest(detectionResult, mock) {
@@ -70,42 +70,42 @@ function TextDetectorDetectionResultTest(detectionResult, mock) {
// mock-{barcode,face}detection.js.
generate_tests(createTestForCanvasElement, [
[
- "Face - HTMLCanvasElement",
+ "Face - detect(HTMLCanvasElement)",
() => { return new FaceDetector(); },
() => { return document.createElement("canvas"); },
() => { return mockFaceDetectionProviderReady; },
FaceDetectorDetectionResultTest
],
[
- "Face - OffscreenCanvas",
+ "Face - detect(OffscreenCanvas)",
() => { return new FaceDetector(); },
() => { return new OffscreenCanvas(300, 150); },
() => { return mockFaceDetectionProviderReady; },
FaceDetectorDetectionResultTest
],
[
- "Barcode - HTMLCanvasElement",
+ "Barcode - detect(HTMLCanvasElement)",
() => { return new BarcodeDetector(); },
() => { return document.createElement("canvas"); },
() => { return mockBarcodeDetectionReady; },
BarcodeDetectorDetectionResultTest
],
[
- "Barcode - OffscreenCanvas",
+ "Barcode - detect(OffscreenCanvas)",
() => { return new BarcodeDetector(); },
() => { return new OffscreenCanvas(300, 150); },
() => { return mockBarcodeDetectionReady; },
BarcodeDetectorDetectionResultTest
],
[
- "Text - HTMLCanvasElement",
+ "Text - detect(HTMLCanvasElement)",
() => { return new TextDetector(); },
() => { return document.createElement("canvas"); },
() => { return mockTextDetectionReady; },
TextDetectorDetectionResultTest
],
[
- "Text - OffscreenCanvas",
+ "Text - detect(OffscreenCanvas)",
() => { return new TextDetector(); },
() => { return new OffscreenCanvas(300, 150); },
() => { return mockTextDetectionReady; },

Powered by Google App Engine
This is Rietveld 408576698