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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html

Issue 2360783003: shapedetection module: Introduce basic structure for face detection (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src=../../resources/testharness.js></script>
3 <script src=../../resources/testharnessreport.js></script>
4 <script>
5
6 // This test verifies that DetectedObject can not be created
7 test(function() {
8 try{
9 var detectedObject = new DetectedObject();
10 }catch(e){
mcasas 2016/09/21 23:25:48 There seems to be way more instances of, e.g. } ca
xianglu 2016/09/22 22:48:39 Done.
11 assert_true(e instanceof TypeError);
12 }
mcasas 2016/09/21 23:25:48 Consider using assert_throws, here and in a simila
xianglu 2016/09/22 22:48:40 Done.
13 }, 'new DetectedObject() should throw illegal constructor exception');
14
15 // This test verifies that Detector not can be created
mcasas 2016/09/21 23:25:48 s/not can/can not/
xianglu 2016/09/22 22:48:39 Done.
16 test(function() {
17 try{
18 var detector = new Detector();
19 }catch(e){
20 assert_true(e instanceof TypeError);
21 }
22 }, 'new Detector() should throw illegal constructor exception');
23
24 // This test verifies that DetectedFace can be created
25 test(function() {
26 var detectedFace = new DetectedFace();
27 assert_true(detectedFace instanceof DetectedFace);
28 }, 'new DetectedFace()');
29
30 // This test verifies that FaceDetector can be created
31 test(function() {
32 var faceDetector = new FaceDetector();
33 assert_true(faceDetector instanceof FaceDetector);
34 }, 'new FaceDetector()');
35
36 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698