gecko-dev/testing/web-platform/tests/media-source
Matt Wolenetz 7112d22b32 Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly
Automatic update from web-platform-tests
MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType

In preparation for Chrome's relaxation of addSourceBuffer and
changeType codec specificity within the mime type parameter, this
change adds new new tests. It also updates the Blink test expectations
for these new tests to be failures. Later changes will add Chrome's
implementation of the relaxed strictness, and will also remove the
failure expectations.

external/wpt/media-source/mediasource-changetype-play-without-codecs-parameter:
  Tests successful addSourceBuffer, changeType, and codec switching
  without using any codecs parameter in types passed to addSourceBuffer
  and changeType for pairs of test media that are of same media class
  (audio or video) and are single track. This test is very similar to
  mediasource-changetype-play.html, just with less specific parameters
  to addSourceBuffer and changeType. This file is kept separate from
  mediasource-changetype-play.html to help identify implementations
  (like Chrome at the time of this change) that require more specific
  parameters to those methods.

external/wpt/media-source/mediasource-changetype-play-implicit.html:
  Tests successful codec switching without using changeType for test
  media of the same bytestream format, separately for audio-only and
  video-only pairs of media. Also includes a set of the same tests where
  the initial addSourceBuffer uses only the (relaxed) mime type/subtype
  without any codecs parameters, for any pairs that included codecs
  parameters in their full types.
  Note: In Chrome, only 1 pair of actually different media files is
  supported across the test media: webm vp8 and vp9. We can add more
  test media later if greater coverage is desired.

external/wpt/media-source/mediasource-changetype-play-negative.html:
  Tests of various explicit, implicit, strict and relaxed scenarios
  which should fail.

Main MSE spec issue for this:
  https://github.com/w3c/media-source/issues/161
Related codec-switching MSE spec issue:
  https://github.com/w3c/media-source/issues/155
These new tests exercise related scenarios to the new non-normative
  guidance in the codec-switching incubation spec branch in WICG
  (https://github.com/WICG/media-source/tree/codec-switching),
  clarifying that implementations can be relaxed in addSourceBuffer
  and changeType codec-specificity, but not isTypeSupported; apps
  should still provide as much type specifics as they can to achieve
  earlier confidence in support or lack thereof, and to avoid issues
  with implementations (like Chrome at the time of this change) that
  require more specific parameters to those methods.

BUG=535738

Change-Id: I20fd477b2429ef94ee70bf57ed8c18543774da93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663349
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Commit-Queue: Matthew Wolenetz <wolenetz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672316}

--
Fix async tests in media-source

mediasource-util.js redefines test.done() to add a final assertion
before actually calling done(). However, the assertion was not wrapped
in test.step(), which would lead to uncaught errors.

--

wpt-commits: b42e788c6937bce1317411e61e9d18ba06835d82, 012de5bb12d78ad7135c26b15fc24f366b1c5845
wpt-pr: 17416
2019-07-24 13:34:54 +01:00
..
mp3
mp4 Bug 1538122 [wpt PR 15976] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=195867, a=testonly 2019-04-24 11:19:01 +01:00
webm
generate-config-change-tests.py
idlharness.any.js
import_tests.sh
manifest.txt
mediasource-activesourcebuffers.html
mediasource-addsourcebuffer-mode.html
mediasource-addsourcebuffer.html
mediasource-append-buffer.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-appendbuffer-quota-exceeded.html
mediasource-appendwindow.html
mediasource-attach-stops-delaying-load-event.html
mediasource-avtracks.html
mediasource-buffered.html
mediasource-changetype-play-implicit.html Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
mediasource-changetype-play-negative.html Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
mediasource-changetype-play-without-codecs-parameter.html Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
mediasource-changetype-play.html Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
mediasource-changetype-util.js Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
mediasource-changetype.html
mediasource-closed.html
mediasource-config-change-mp4-a-bitrate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-mp4-av-audio-bitrate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-mp4-av-framesize.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-mp4-av-video-bitrate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-mp4-v-bitrate.html
mediasource-config-change-mp4-v-framerate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-mp4-v-framesize.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-webm-a-bitrate.html
mediasource-config-change-webm-av-audio-bitrate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-webm-av-framesize.html
mediasource-config-change-webm-av-video-bitrate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-webm-v-bitrate.html
mediasource-config-change-webm-v-framerate.html Bug 1532639 [wpt PR 15630] - Add <meta name=timeout content=long> to WPT in SlowTests, a=testonly 2019-04-24 11:19:30 +01:00
mediasource-config-change-webm-v-framesize.html
mediasource-config-changes.js
mediasource-correct-frames-after-reappend.html Bug 1538122 [wpt PR 15976] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=195867, a=testonly 2019-04-24 11:19:01 +01:00
mediasource-correct-frames.html Bug 1538122 [wpt PR 15976] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=195867, a=testonly 2019-04-24 11:19:01 +01:00
mediasource-detach.html
mediasource-duration-boundaryconditions.html
mediasource-duration.html
mediasource-endofstream-invaliderror.html
mediasource-endofstream.html Bug 1558480 [wpt PR 17266] - Use assert_approx_equals in MediaSource tests, a=testonly 2019-06-19 11:06:59 -07:00
mediasource-errors.html
mediasource-getvideoplaybackquality.html Bug 1525554 - Avoid testharness reporting error casued by unhandled rejected promises in media-source/mediasource-getvideoplaybackquality.html; r=annevk 2019-05-28 13:49:15 +00:00
mediasource-invalid-codec.html
mediasource-is-type-supported.html Bug 1551025 [wpt PR 16759] - MSE: Enable 'video/mp4' opus IsTypeSupported success, a=testonly 2019-06-05 10:29:52 +01:00
mediasource-liveseekable.html
mediasource-multiple-attach.html
mediasource-play-then-seek-back.html
mediasource-play.html Bug 1559219 [wpt PR 17322] - MSE: Let external/wpt/.../mediasource-play have longer timeout, a=testonly 2019-07-24 13:29:39 +01:00
mediasource-preload.html
mediasource-redundant-seek.html
mediasource-remove.html
mediasource-removesourcebuffer.html
mediasource-seek-beyond-duration.html
mediasource-seek-during-pending-seek.html
mediasource-seekable.html
mediasource-sequencemode-append-buffer.html Bug 1558480 [wpt PR 17266] - Use assert_approx_equals in MediaSource tests, a=testonly 2019-06-19 11:06:59 -07:00
mediasource-sourcebuffer-mode-timestamps.html
mediasource-sourcebuffer-mode.html
mediasource-sourcebuffer-trackdefaults.html
mediasource-sourcebufferlist.html
mediasource-timestamp-offset.html
mediasource-trackdefault.html
mediasource-trackdefaultlist.html
mediasource-util.js Bug 1566603 [wpt PR 17416] - MSE: Test addSourceBuffer and changeType relaxed type strictness and allowance for implicit changeType, a=testonly 2019-07-24 13:34:54 +01:00
META.yml
SourceBuffer-abort-readyState.html
SourceBuffer-abort-removed.html
SourceBuffer-abort-updating.html
SourceBuffer-abort.html
URL-createObjectURL-null.html
URL-createObjectURL-revoke.html
URL-createObjectURL.html