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

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

Issue 2360783003: shapedetection module: Introduce basic structure for face detection (Closed)
Patch Set: haraken@ comments 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
diff --git a/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
new file mode 100644
index 0000000000000000000000000000000000000000..324bc5d63297869a96b01a725de35ff94f9f4d6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src=../../resources/testharness.js></script>
+<script src=../../resources/testharnessreport.js></script>
+<script>
+
+// This test verifies that DetectedObject can not be created
+test(function() {
+ assert_throws(new TypeError(),
+ function() {
+ var detectedObject = new DetectedObject();
+ });
+}, 'DetectedObject should not be instantiable.');
+
+// This test verifies that Detector can not be created
+test(function() {
+ assert_throws(new TypeError(),
+ function() {
+ var detector = new Detector();
+ });
+}, 'Detector should not be instantiable.');
+
+// This test verifies that DetectedFace can be created
+test(function() {
+ var detectedFace = new DetectedFace();
+ assert_true(detectedFace instanceof DetectedFace);
+}, 'DetectedFace instance can be created.');
+
+// This test verifies that FaceDetector can be created
+test(function() {
+ var faceDetector = new FaceDetector();
+ assert_true(faceDetector instanceof FaceDetector);
+}, 'FaceDetector instance can be created.');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698