Closed Bug 1535435 Opened 5 months ago Closed 4 months ago

[wpt-sync] Sync PR 15761 - Upstream shapedetection tests to WPT

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 15761 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/15761
Details from upstream follow.

Wanming Lin <wanming.lin@intel.com> wrote:

Upstream shapedetection tests to WPT

Moved shapedetection tests under
third_party/blink/web_tests/shapedetection/,
third_party/blink/web_tests/fast/shapedetection/,
third_party/blink/web_tests/http/tests/shapedetection/,
to third_party/blink/web_tests/external/wpt/shape-detection/, excludes
the Text detection part as which is still a sister informative
specification of Shape Detection.

Copyed third_party/blink/web_tests/shapedetection/resources/big-buffer-helpers.js
to wpt/shape-detection/resources/shapedetection-helpers.js and extended it by
adding a wrapper promise test, detection_test.

Moved third_party/blink/web_tests/shapedetection/resources/mock-barcodedetection.js
and third_party/blink/web_tests/shapedetection/resources/mock-facedetection.js
to wpt/resources/chromium/

Copyed following auto generated files to wpt/resources/chromium/ used a flag
called "scramble_message_ids = false" to the mojom compiler.
barcodedetection.mojom.js
barcodedetection_provider.mojom.js
bitmap.mojom.js
facedetection.mojom.js
facedetection_provider.mojom.js
geometry.mojom.js
image_info.mojom.js

Used the testharness from wpt/ and rewrited tests to remove use of
generate_tests as which is discouraged in wpt.

Rewrite detection-on-worker.html as detection-on-worker.worker.js by using
wpt preferred worker test framework.

Rename detection-support.html as detection-getSupportedFormats.html as *-support.html
is treated as support file rather than test file in wpt.

No new tests have been added.

BUG=932382

Change-Id: I321e7b9f986f407b83325bb4c6bdc366c9769264

Reviewed-on: https://chromium-review.googlesource.com/1510754
WPT-Export-Revision: d738bbd1deb331170466bb2338298a113ef4fcc3

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 15 tests and 84 subtests
OK     : 14
PASS   : 2
FAIL   : 78
TIMEOUT: 2
NOTRUN : 3

New tests that have failures or other problems:
/shape-detection/detected-boundingBox-read-only.html
    Barcode - detectedBarcode.boundingBox should be DOMRectReadOnly: FAIL
    Face - detectedFace.boundingBox should be DOMRectReadOnly: FAIL
/shape-detection/detection-HTMLCanvasElement.html
    Barcode - detect(HTMLCanvasElement): FAIL
    Barcode - detect(OffscreenCanvas): FAIL
    Face - detect(HTMLCanvasElement): FAIL
    Face - detect(OffscreenCanvas): FAIL
/shape-detection/detection-HTMLImageElement.html
    Barcode - detect(HTMLImageElement): FAIL
    Face - detect(HTMLImageElement): FAIL
/shape-detection/detection-HTMLVideoElement.html
    Barcode - detect(HTMLVideoElement): FAIL
    Face - detect(HTMLVideoElement): FAIL
/shape-detection/detection-ImageBitmap.html
    Barcode - detect(ImageBitmap): FAIL
    Face - detect(ImageBitmap): FAIL
/shape-detection/detection-ImageData.html
    Barcode - detect(ImageData): FAIL
    Face - detect(ImageData): FAIL
/shape-detection/detection-getSupportedFormats.html
    get supported barcode formats: FAIL
/shape-detection/detection-on-worker.worker.html
    Barcode Detector detect(ImageBitmap) on worker: FAIL
    Face Detector detect(ImageBitmap) on worker: FAIL
/shape-detection/detection-options.html
    Test that FaceDetectionOptions are correctly propagated: FAIL
/shape-detection/detection-security-test.html: TIMEOUT
    Barcode - detect(broken image): NOTRUN
    Barcode - detect(broken video): NOTRUN
    Face - detect(broken image): TIMEOUT
    Face - detect(broken video): NOTRUN
/shape-detection/detector-same-object.html
    Barcode - detect(ImageData), [SameObject]: FAIL
    Face - detect(ImageData), [SameObject]: FAIL
/shape-detection/idlharness.any.html
    idl_test setup: FAIL
/shape-detection/idlharness.any.worker.html
    idl_test setup: FAIL
/shape-detection/shapedetection-cross-origin.sub.html
    BarcodeDetector should reject cross-origin HTMLImageElements with a SecurityError.: FAIL
    BarcodeDetector should reject cross-origin HTMLVideoElements with a SecurityError.: FAIL
    BarcodeDetector should reject cross-origin ImageBitmaps with a SecurityError.: FAIL
    FaceDetector should reject cross-origin HTMLImageElements with a SecurityError.: FAIL
    FaceDetector should reject cross-origin HTMLVideoElements with a SecurityError.: FAIL
    FaceDetector should reject cross-origin ImageBitmaps with a SecurityError.: FAIL
/shape-detection/shapedetection-empty-input.html
    Barcode - detect(empty): FAIL
    Face - detect(empty): FAIL
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d894877b31df
[wpt PR 15761] - Upstream shapedetection tests to WPT, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/11bfec556d42
[wpt PR 15761] - Update wpt metadata, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/00c9874fd527
[wpt PR 15761] - Upstream shapedetection tests to WPT, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/47c28abbd3b2
[wpt PR 15761] - Update wpt metadata, a=testonly
You need to log in before you can comment on or make changes to this bug.