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

Side by Side Diff: third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.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 <body> 7 <body>
8 <img id="img" src="../media/content/greenbox.png"/> 8 <img id="img" src="../media/content/greenbox.png"/>
9 </body> 9 </body>
10 <script> 10 <script>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 assert_equals(detectionResult[0].rawValue, "cats", "barcode 1"); 51 assert_equals(detectionResult[0].rawValue, "cats", "barcode 1");
52 assert_equals(detectionResult[1].rawValue, "dogs", "barcode 2"); 52 assert_equals(detectionResult[1].rawValue, "dogs", "barcode 2");
53 } 53 }
54 54
55 // These tests verify that a Detector's detect() works on an HTMLImageElement. 55 // These tests verify that a Detector's detect() works on an HTMLImageElement.
56 // Use the mock mojo server implemented in mock-{barcode,face}detection.js. 56 // Use the mock mojo server implemented in mock-{barcode,face}detection.js.
57 generate_tests(createTestForImageElement, [ 57 generate_tests(createTestForImageElement, [
58 [ 58 [
59 "Face", 59 "Face",
60 () => { return new FaceDetector(); }, 60 () => { return new FaceDetector(); },
61 () => { return mockFaceDetectionReady; }, 61 () => { return mockFaceDetectionProviderReady; },
62 FaceDetectorDetectionResultTest 62 FaceDetectorDetectionResultTest
63 ], 63 ],
64 [ 64 [
65 "Barcode", 65 "Barcode",
66 () => { return new BarcodeDetector(); }, 66 () => { return new BarcodeDetector(); },
67 () => { return mockBarcodeDetectionReady; }, 67 () => { return mockBarcodeDetectionReady; },
68 BarcodeDetectorDetectionResultTest 68 BarcodeDetectorDetectionResultTest
69 ] 69 ]
70 ]); 70 ]);
71 71
72 </script> 72 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698