blob: e37342394a9220569c0627610e8e43bf320b8e05 [file] [edit]
RUN(internals.enableMockMediaCapabilities())
RUN(internals.settings.setMediaCapabilitiesExtensionsEnabled(true))
RUN(promise = navigator.mediaCapabilities.decodingInfo({ type: 'file', video: { contentType: 'video/mp4; codecs="avc1"', height: 720, bitrate: 1000, width: 1280, framerate: 24.5 }, unsupportedProperty: true });)
Promise resolved OK
EXPECTED (info.supported == 'true') OK
EXPECTED (info.smooth == 'true') OK
EXPECTED (info.powerEfficient == 'true') OK
EXPECTED (typeof info.configuration != 'undefined') OK
EXPECTED (info.configuration.type == 'file') OK
EXPECTED (info.configuration.video.contentType == 'video/mp4; codecs="avc1"') OK
EXPECTED (info.configuration.video.height == '720') OK
EXPECTED (info.configuration.video.bitrate == '1000') OK
EXPECTED (info.configuration.video.width == '1280') OK
EXPECTED (info.configuration.video.framerate == '24.5') OK
EXPECTED (typeof info.configuration.unsupportedProperty == 'undefined') OK
RUN(promise = navigator.mediaCapabilities.decodingInfo({ type: 'media-source', video: { contentType: 'video/mp4; codecs="avc1"', height: 720, bitrate: 1000, width: 1280, framerate: 24.5 }, unsupportedProperty: true });)
Promise resolved OK
EXPECTED (info.supported == 'false') OK
EXPECTED (info.smooth == 'false') OK
EXPECTED (info.powerEfficient == 'false') OK
EXPECTED (typeof info.configuration != 'undefined') OK
EXPECTED (info.configuration.type == 'media-source') OK
EXPECTED (info.configuration.video.contentType == 'video/mp4; codecs="avc1"') OK
EXPECTED (info.configuration.video.height == '720') OK
EXPECTED (info.configuration.video.bitrate == '1000') OK
EXPECTED (info.configuration.video.width == '1280') OK
EXPECTED (info.configuration.video.framerate == '24.5') OK
EXPECTED (typeof info.configuration.unsupportedProperty == 'undefined') OK
END OF TEST