Closed Bug 1489417 Opened Last year Closed Last year

[wpt-sync] Sync PR 12893 - Add tests for mediacapture-image

Categories

(Core :: Audio/Video: Recording, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

kaixinjxq <xiuqix.jiang@intel.com> wrote:
>  Add tests for mediacapture-image
>  
>  Cover following checkpoints:
>  - throw TypeError when ImageCapture parameter is not mediaStramTrack
>  - ImageCapture track attribute is readonly
>  - getPhotoCapabilities() of an ended Track should throw InvalidStateError
>  - getPhotoSettings() of an ended Track should throw InvalidStateError
>  - takePhoto() of an ended Track should throw InvalidStateError
>  - the parameter of takePhoto() is nullable
Component: web-platform-tests → Audio/Video: Recording
Product: Testing → Core
Ran 5 tests and 12 subtests
OK     : 4
FAIL   : 11
TIMEOUT: 2

New tests that have failures or other problems:
/mediacapture-image/ImageCapture-creation.https.html
    throw "TypeError" if parameter is not MediaStreamTrack.: FAIL
/mediacapture-image/ImageCapture-track.html
    ImageCapture track attribute is readonly: FAIL
/mediacapture-image/getPhotoCapabilities.html
    getPhotoCapabilities() of an ended Track should throw "InvalidStateError": FAIL
/mediacapture-image/getPhotoSettings.html
    getPhotoSettings() of an ended Track should throw "InvalidStateError": FAIL
/mediacapture-image/takePhoto.html
    exercises ImageCapture.takePhoto(null): FAIL
    takePhoto() of an ended Track should throw "InvalidStateError": FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/151d407ff320
[wpt PR 12893] - Add tests for mediacapture-image, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/c889c43ddfb9
[wpt PR 12893] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/151d407ff320
https://hg.mozilla.org/mozilla-central/rev/c889c43ddfb9
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.