servo/tests/wpt/web-platform-tests/shape-detection
2019-07-31 13:42:02 +00:00
..
resources Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detected-boundingBox-read-only.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-getSupportedFormats.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-HTMLCanvasElement.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-HTMLImageElement.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-HTMLVideoElement.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-ImageBitmap.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-ImageData-detached.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-ImageData.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-on-worker.https.worker.js Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-options.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detection-security-test.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
detector-same-object.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
idlharness.https.any.js Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
META.yml Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d 2018-07-18 22:07:44 +00:00
README.md Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7 2019-03-21 23:44:37 -04:00
shapedetection-cross-origin.sub.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00
shapedetection-empty-input.https.html Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c 2019-07-31 13:42:02 +00:00

The shapedetection-helpers.js tests require implementations of the FaceDetectionTest and BarcodeDetectionTest interfaces, which should emulate platform shape detection backends.

The FaceDetectionTest interface is defined as:

  class FaceDetectionTest {
    async initialize();  // Sets up the testing environment.
    async reset(); // Frees the resources.
    MockFaceDetectionProvider(); //Returns `MockFaceDetectionProvider` interface.
  };

  class MockFaceDetectionProvider {
    getFrameData(); //Gets frame data of detection result.
    getMaxDetectedFaces(); //Gets value of `maxDetectedFaces` in `FaceDetector` constructor
    getFastMode(); //Gets value of `fastMode` in `FaceDetector` constructor
  };

The Chromium implementation of the FaceDetectionTest interface is located in mock-facedetection.js.

The BarcodeDetectionTest interface is defined as:

  class BarcodeDetectionTest {
    async initialize();  // Sets up the testing environment.
    async reset(); // Frees the resources.
    MockBarcodeDetectionProvider(); //Returns `MockBarcodeDetectionProvider` interface.
  };

  class MockBarcodeDetectionProvider {
    async enumerateSupportedFormats(); //Enumerates supported formats
    getFrameData(); //Gets frame data of detection result.
    getFormats(); //Gets value of `formats` in `BarcodeDetector` constructor
  };

The Chromium implementation of the BarcodeDetectionTest interface is located in mock-barcodedetection.js.

Other browser vendors should provide their own implementations of the FaceDetectionTest and BarcodeDetectionTest interfaces.