Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
..
resources 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
META.yml 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detected-boundingBox-read-only.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detected-postMessage.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-Blob.https.window.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-HTMLCanvasElement.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-HTMLImageElement-empty-src.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-HTMLImageElement-zero-dimension-image.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-HTMLImageElement.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-HTMLVideoElement.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-ImageBitmap-closed.https.window.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-ImageBitmap.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-ImageData-detached.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-ImageData.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-SVGImageElement.https.window.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-VideoFrame.https.window.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-getSupportedFormats.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-on-worker.https.worker.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-options.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detection-security-test.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
detector-same-object.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
idlharness.https.any.js 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
shapedetection-cross-origin.sub.https.html 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago

README.md

The shapedetection-helpers.js tests require implementations of the FaceDetectionTest, BarcodeDetectionTest and TextDetectionTest 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
    simulateNoImplementation(); // simulate a 'no implementation available' case
  };

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

The TextDetectionTest interface is defined as:

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

  class MockTextDetection {
    getFrameData(); //Gets frame data of detection result.
  };

The Chromium implementation of the TextDetectionTest interface is located in mock-textdetection.js.

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