servo/tests/wpt/web-platform-tests/shape-detection
2023-04-30 01:30:40 +00:00
..
resources Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273' 2023-04-30 01:30:40 +00:00
detected-boundingBox-read-only.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detected-postMessage.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-Blob.https.window.js Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4' 2022-01-20 20:57:54 +09:00
detection-getSupportedFormats.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-HTMLCanvasElement.https.html Update web-platform-tests to revision 48e3fd2f4d41fa00640d27738bdda07db95594cc 2020-12-16 11:01:01 +00:00
detection-HTMLImageElement-empty-src.https.html Update web-platform-tests to revision 48e3fd2f4d41fa00640d27738bdda07db95594cc 2020-12-16 11:01:01 +00:00
detection-HTMLImageElement-zero-dimension-image.https.html Update web-platform-tests to revision 48e3fd2f4d41fa00640d27738bdda07db95594cc 2020-12-16 11:01:01 +00:00
detection-HTMLImageElement.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-HTMLVideoElement.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-ImageBitmap-closed.https.window.js Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4' 2022-01-20 20:57:54 +09:00
detection-ImageBitmap.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-ImageData-detached.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-ImageData.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-ImageDataUint16StorageFormat.https.window.js Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005' 2022-11-10 01:27:28 +00:00
detection-on-worker.https.worker.js Update web-platform-tests to revision 9ca57e052ba1b19fa3dd46c6aa656e8d529469a8 2020-09-12 10:44:07 +00:00
detection-options.https.html Update web-platform-tests to revision 289272c280086dda4bce0d31f2ce0fc1e7a08fa8 2021-02-03 11:17:49 +00:00
detection-security-test.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
detection-SVGImageElement.https.window.js Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4' 2022-01-20 20:57:54 +09:00
detection-VideoFrame.https.window.js Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005' 2022-11-10 01:27:28 +00:00
detector-same-object.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
idlharness.https.any.js Update web-platform-tests to revision 6730dabbcc826e8ccbd6a9ee43d67c65e8626f29 2020-09-29 10:32:20 +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 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
shapedetection-cross-origin.sub.https.html Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
single-barcode-detection.https.html Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273' 2023-04-30 01:30:40 +00:00
single-face-detection.https.html Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273' 2023-04-30 01:30:40 +00:00
single-text-detection.https.html Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273' 2023-04-30 01:30:40 +00:00

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.