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

Side by Side Diff: third_party/WebKit/LayoutTests/shapedetection/detection-HTMLVideoElement.html

Issue 2564163003: ShapeDetection: Add ShapeDetectionProvider (Closed)
Patch Set: Name change: mockFaceDetectionProviderReady, rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/mock-barcodedetection.js"></script> 5 <script src="resources/mock-barcodedetection.js"></script>
6 <script src="resources/mock-facedetection.js"></script> 6 <script src="resources/mock-facedetection.js"></script>
7 <script> 7 <script>
8 8
9 var createTestForVideoElement = function(createDetector, mockReady, 9 var createTestForVideoElement = function(createDetector, mockReady,
10 detectionResultTest) { 10 detectionResultTest) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 assert_equals(detectionResult[0].rawValue, "cats", "barcode 1"); 55 assert_equals(detectionResult[0].rawValue, "cats", "barcode 1");
56 assert_equals(detectionResult[1].rawValue, "dogs", "barcode 2"); 56 assert_equals(detectionResult[1].rawValue, "dogs", "barcode 2");
57 } 57 }
58 58
59 // These tests verify that a Detector's detect() works on an HTMLVideoElement. 59 // These tests verify that a Detector's detect() works on an HTMLVideoElement.
60 // Use the mock mojo server implemented in mock-{barcode,face}detection.js. 60 // Use the mock mojo server implemented in mock-{barcode,face}detection.js.
61 generate_tests(createTestForVideoElement, [ 61 generate_tests(createTestForVideoElement, [
62 [ 62 [
63 "Face", 63 "Face",
64 () => { return new FaceDetector(); }, 64 () => { return new FaceDetector(); },
65 () => { return mockFaceDetectionReady; }, 65 () => { return mockFaceDetectionProviderReady; },
66 FaceDetectorDetectionResultTest 66 FaceDetectorDetectionResultTest
67 ], 67 ],
68 [ 68 [
69 "Barcode", 69 "Barcode",
70 () => { return new BarcodeDetector(); }, 70 () => { return new BarcodeDetector(); },
71 () => { return mockBarcodeDetectionReady; }, 71 () => { return mockBarcodeDetectionReady; },
72 BarcodeDetectorDetectionResultTest 72 BarcodeDetectorDetectionResultTest
73 ] 73 ]
74 ]); 74 ]);
75 75
76 </script> 76 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698