From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/web-platform/tests/media-source/OWNERS | 3 + .../SourceBuffer-abort-readyState.html | 72 +++ .../media-source/SourceBuffer-abort-removed.html | 52 ++ .../media-source/SourceBuffer-abort-updating.html | 92 ++++ .../tests/media-source/SourceBuffer-abort.html | 34 ++ .../media-source/URL-createObjectURL-null.html | 19 + .../media-source/URL-createObjectURL-revoke.html | 59 +++ .../tests/media-source/URL-createObjectURL.html | 20 + .../tests/media-source/import_tests.sh | 52 ++ .../tests/media-source/interfaces.html | 143 ++++++ .../web-platform/tests/media-source/manifest.txt | 55 +++ .../mediasource-activesourcebuffers.html | 238 +++++++++ .../mediasource-addsourcebuffer-mode.html | 31 ++ .../media-source/mediasource-addsourcebuffer.html | 154 ++++++ .../media-source/mediasource-append-buffer.html | 539 +++++++++++++++++++++ .../mediasource-appendbuffer-quota-exceeded.html | 43 ++ .../media-source/mediasource-appendwindow.html | 176 +++++++ ...diasource-attach-stops-delaying-load-event.html | 49 ++ .../tests/media-source/mediasource-avtracks.html | 124 +++++ .../tests/media-source/mediasource-buffered.html | 233 +++++++++ .../tests/media-source/mediasource-closed.html | 140 ++++++ .../mediasource-config-change-mp4-a-bitrate.html | 17 + ...asource-config-change-mp4-av-audio-bitrate.html | 17 + ...mediasource-config-change-mp4-av-framesize.html | 17 + ...asource-config-change-mp4-av-video-bitrate.html | 17 + .../mediasource-config-change-mp4-v-bitrate.html | 17 + .../mediasource-config-change-mp4-v-framerate.html | 17 + .../mediasource-config-change-mp4-v-framesize.html | 17 + .../mediasource-config-change-webm-a-bitrate.html | 17 + ...source-config-change-webm-av-audio-bitrate.html | 17 + ...ediasource-config-change-webm-av-framesize.html | 17 + ...source-config-change-webm-av-video-bitrate.html | 17 + .../mediasource-config-change-webm-v-bitrate.html | 17 + ...mediasource-config-change-webm-v-framerate.html | 17 + ...mediasource-config-change-webm-v-framesize.html | 17 + .../media-source/mediasource-config-changes.js | 113 +++++ .../tests/media-source/mediasource-detach.html | 50 ++ .../mediasource-duration-boundaryconditions.html | 63 +++ .../tests/media-source/mediasource-duration.html | 383 +++++++++++++++ .../mediasource-endofstream-invaliderror.html | 53 ++ .../media-source/mediasource-endofstream.html | 76 +++ .../tests/media-source/mediasource-errors.html | 234 +++++++++ .../mediasource-getvideoplaybackquality.html | 117 +++++ .../mediasource-is-type-supported.html | 87 ++++ .../media-source/mediasource-liveseekable.html | 137 ++++++ .../media-source/mediasource-multiple-attach.html | 114 +++++ .../mediasource-play-then-seek-back.html | 57 +++ .../tests/media-source/mediasource-play.html | 54 +++ .../tests/media-source/mediasource-preload.html | 72 +++ .../media-source/mediasource-redundant-seek.html | 73 +++ .../tests/media-source/mediasource-remove.html | 324 +++++++++++++ .../mediasource-removesourcebuffer.html | 146 ++++++ .../mediasource-seek-beyond-duration.html | 105 ++++ .../mediasource-seek-during-pending-seek.html | 189 ++++++++ .../tests/media-source/mediasource-seekable.html | 64 +++ .../mediasource-sequencemode-append-buffer.html | 140 ++++++ .../mediasource-sourcebuffer-mode-timestamps.html | 52 ++ .../mediasource-sourcebuffer-mode.html | 142 ++++++ .../mediasource-sourcebuffer-trackdefaults.html | 78 +++ .../media-source/mediasource-sourcebufferlist.html | 97 ++++ .../media-source/mediasource-timestamp-offset.html | 125 +++++ .../media-source/mediasource-trackdefault.html | 101 ++++ .../media-source/mediasource-trackdefaultlist.html | 60 +++ .../tests/media-source/mediasource-util.js | 407 ++++++++++++++++ .../mp4/test-a-128k-44100Hz-1ch-manifest.json | 4 + .../media-source/mp4/test-a-128k-44100Hz-1ch.mp4 | Bin 0 -> 17408 bytes .../mp4/test-a-192k-44100Hz-1ch-manifest.json | 4 + .../media-source/mp4/test-a-192k-44100Hz-1ch.mp4 | Bin 0 -> 17685 bytes ...k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json | 4 + ...est-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4 | Bin 0 -> 81565 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...est-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4 | Bin 0 -> 69474 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...est-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4 | Bin 0 -> 69948 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...est-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4 | Bin 0 -> 95171 bytes .../test-v-128k-320x240-24fps-8kfr-manifest.json | 4 + .../mp4/test-v-128k-320x240-24fps-8kfr.mp4 | Bin 0 -> 38738 bytes .../test-v-128k-320x240-30fps-10kfr-manifest.json | 4 + .../mp4/test-v-128k-320x240-30fps-10kfr.mp4 | Bin 0 -> 34009 bytes .../test-v-128k-640x480-30fps-10kfr-manifest.json | 4 + .../mp4/test-v-128k-640x480-30fps-10kfr.mp4 | Bin 0 -> 27764 bytes .../test-v-256k-320x240-30fps-10kfr-manifest.json | 4 + .../mp4/test-v-256k-320x240-30fps-10kfr.mp4 | Bin 0 -> 55293 bytes .../web-platform/tests/media-source/mp4/test.mp4 | Bin 0 -> 187227 bytes .../webm/test-a-128k-44100Hz-1ch-manifest.json | 4 + .../media-source/webm/test-a-128k-44100Hz-1ch.webm | Bin 0 -> 9840 bytes .../webm/test-a-192k-44100Hz-1ch-manifest.json | 4 + .../media-source/webm/test-a-192k-44100Hz-1ch.webm | Bin 0 -> 10735 bytes ...k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json | 4 + ...st-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm | Bin 0 -> 76501 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...st-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm | Bin 0 -> 80692 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...st-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm | Bin 0 -> 81467 bytes ...k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json | 4 + ...st-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm | Bin 0 -> 132509 bytes .../test-v-128k-320x240-24fps-8kfr-manifest.json | 4 + .../webm/test-v-128k-320x240-24fps-8kfr.webm | Bin 0 -> 38195 bytes .../test-v-128k-320x240-30fps-10kfr-manifest.json | 4 + .../webm/test-v-128k-320x240-30fps-10kfr.webm | Bin 0 -> 39228 bytes .../test-v-128k-640x480-30fps-10kfr-manifest.json | 4 + .../webm/test-v-128k-640x480-30fps-10kfr.webm | Bin 0 -> 48190 bytes .../test-v-256k-320x240-30fps-10kfr-manifest.json | 4 + .../webm/test-v-256k-320x240-30fps-10kfr.webm | Bin 0 -> 64318 bytes .../media-source/webm/test-vp8-vorbis-webvtt.webm | Bin 0 -> 143662 bytes .../web-platform/tests/media-source/webm/test.webm | Bin 0 -> 190970 bytes 107 files changed, 6359 insertions(+) create mode 100644 testing/web-platform/tests/media-source/OWNERS create mode 100644 testing/web-platform/tests/media-source/SourceBuffer-abort-readyState.html create mode 100644 testing/web-platform/tests/media-source/SourceBuffer-abort-removed.html create mode 100644 testing/web-platform/tests/media-source/SourceBuffer-abort-updating.html create mode 100644 testing/web-platform/tests/media-source/SourceBuffer-abort.html create mode 100644 testing/web-platform/tests/media-source/URL-createObjectURL-null.html create mode 100644 testing/web-platform/tests/media-source/URL-createObjectURL-revoke.html create mode 100644 testing/web-platform/tests/media-source/URL-createObjectURL.html create mode 100755 testing/web-platform/tests/media-source/import_tests.sh create mode 100644 testing/web-platform/tests/media-source/interfaces.html create mode 100644 testing/web-platform/tests/media-source/manifest.txt create mode 100644 testing/web-platform/tests/media-source/mediasource-activesourcebuffers.html create mode 100644 testing/web-platform/tests/media-source/mediasource-addsourcebuffer-mode.html create mode 100644 testing/web-platform/tests/media-source/mediasource-addsourcebuffer.html create mode 100644 testing/web-platform/tests/media-source/mediasource-append-buffer.html create mode 100644 testing/web-platform/tests/media-source/mediasource-appendbuffer-quota-exceeded.html create mode 100644 testing/web-platform/tests/media-source/mediasource-appendwindow.html create mode 100644 testing/web-platform/tests/media-source/mediasource-attach-stops-delaying-load-event.html create mode 100644 testing/web-platform/tests/media-source/mediasource-avtracks.html create mode 100644 testing/web-platform/tests/media-source/mediasource-buffered.html create mode 100644 testing/web-platform/tests/media-source/mediasource-closed.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-a-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-audio-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-framesize.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-video-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framerate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framesize.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-a-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-av-audio-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-av-framesize.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-av-video-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-v-bitrate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framerate.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framesize.html create mode 100644 testing/web-platform/tests/media-source/mediasource-config-changes.js create mode 100644 testing/web-platform/tests/media-source/mediasource-detach.html create mode 100644 testing/web-platform/tests/media-source/mediasource-duration-boundaryconditions.html create mode 100644 testing/web-platform/tests/media-source/mediasource-duration.html create mode 100644 testing/web-platform/tests/media-source/mediasource-endofstream-invaliderror.html create mode 100644 testing/web-platform/tests/media-source/mediasource-endofstream.html create mode 100644 testing/web-platform/tests/media-source/mediasource-errors.html create mode 100644 testing/web-platform/tests/media-source/mediasource-getvideoplaybackquality.html create mode 100644 testing/web-platform/tests/media-source/mediasource-is-type-supported.html create mode 100644 testing/web-platform/tests/media-source/mediasource-liveseekable.html create mode 100644 testing/web-platform/tests/media-source/mediasource-multiple-attach.html create mode 100644 testing/web-platform/tests/media-source/mediasource-play-then-seek-back.html create mode 100644 testing/web-platform/tests/media-source/mediasource-play.html create mode 100644 testing/web-platform/tests/media-source/mediasource-preload.html create mode 100644 testing/web-platform/tests/media-source/mediasource-redundant-seek.html create mode 100644 testing/web-platform/tests/media-source/mediasource-remove.html create mode 100644 testing/web-platform/tests/media-source/mediasource-removesourcebuffer.html create mode 100644 testing/web-platform/tests/media-source/mediasource-seek-beyond-duration.html create mode 100644 testing/web-platform/tests/media-source/mediasource-seek-during-pending-seek.html create mode 100644 testing/web-platform/tests/media-source/mediasource-seekable.html create mode 100644 testing/web-platform/tests/media-source/mediasource-sequencemode-append-buffer.html create mode 100644 testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode-timestamps.html create mode 100644 testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode.html create mode 100644 testing/web-platform/tests/media-source/mediasource-sourcebuffer-trackdefaults.html create mode 100644 testing/web-platform/tests/media-source/mediasource-sourcebufferlist.html create mode 100644 testing/web-platform/tests/media-source/mediasource-timestamp-offset.html create mode 100644 testing/web-platform/tests/media-source/mediasource-trackdefault.html create mode 100644 testing/web-platform/tests/media-source/mediasource-trackdefaultlist.html create mode 100644 testing/web-platform/tests/media-source/mediasource-util.js create mode 100644 testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr.mp4 create mode 100644 testing/web-platform/tests/media-source/mp4/test.mp4 create mode 100644 testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr-manifest.json create mode 100644 testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr.webm create mode 100644 testing/web-platform/tests/media-source/webm/test-vp8-vorbis-webvtt.webm create mode 100644 testing/web-platform/tests/media-source/webm/test.webm (limited to 'testing/web-platform/tests/media-source') diff --git a/testing/web-platform/tests/media-source/OWNERS b/testing/web-platform/tests/media-source/OWNERS new file mode 100644 index 000000000..5315c9b71 --- /dev/null +++ b/testing/web-platform/tests/media-source/OWNERS @@ -0,0 +1,3 @@ +@shishimaru +@sideshowbarker +@wolenetz diff --git a/testing/web-platform/tests/media-source/SourceBuffer-abort-readyState.html b/testing/web-platform/tests/media-source/SourceBuffer-abort-readyState.html new file mode 100644 index 000000000..159ee60a2 --- /dev/null +++ b/testing/web-platform/tests/media-source/SourceBuffer-abort-readyState.html @@ -0,0 +1,72 @@ + + + + + SourceBuffer#abort() when readyState attribute is not in the "open" + + + + + +
+ + + + diff --git a/testing/web-platform/tests/media-source/SourceBuffer-abort-removed.html b/testing/web-platform/tests/media-source/SourceBuffer-abort-removed.html new file mode 100644 index 000000000..00d65c133 --- /dev/null +++ b/testing/web-platform/tests/media-source/SourceBuffer-abort-removed.html @@ -0,0 +1,52 @@ + + + + + SourceBuffer#abort() for already removed buffer from parent media source + + + + +
+ + + + diff --git a/testing/web-platform/tests/media-source/SourceBuffer-abort-updating.html b/testing/web-platform/tests/media-source/SourceBuffer-abort-updating.html new file mode 100644 index 000000000..1132d1466 --- /dev/null +++ b/testing/web-platform/tests/media-source/SourceBuffer-abort-updating.html @@ -0,0 +1,92 @@ + + + + + Check SourceBuffer#abort() when the updating attribute is true + + + + +
+ + + + diff --git a/testing/web-platform/tests/media-source/SourceBuffer-abort.html b/testing/web-platform/tests/media-source/SourceBuffer-abort.html new file mode 100644 index 000000000..7d7c9ff1d --- /dev/null +++ b/testing/web-platform/tests/media-source/SourceBuffer-abort.html @@ -0,0 +1,34 @@ + + + + + Check the values of appendWindowStart and appendWindowEnd after abort() + + + + +
+ + + + diff --git a/testing/web-platform/tests/media-source/URL-createObjectURL-null.html b/testing/web-platform/tests/media-source/URL-createObjectURL-null.html new file mode 100644 index 000000000..a4177dd84 --- /dev/null +++ b/testing/web-platform/tests/media-source/URL-createObjectURL-null.html @@ -0,0 +1,19 @@ + + + + + URL.createObjectURL(null) + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/URL-createObjectURL-revoke.html b/testing/web-platform/tests/media-source/URL-createObjectURL-revoke.html new file mode 100644 index 000000000..c5e18d4fd --- /dev/null +++ b/testing/web-platform/tests/media-source/URL-createObjectURL-revoke.html @@ -0,0 +1,59 @@ + + + + + Revoking a created URL with URL.revokeObjectURL(url) + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/URL-createObjectURL.html b/testing/web-platform/tests/media-source/URL-createObjectURL.html new file mode 100644 index 000000000..da8280634 --- /dev/null +++ b/testing/web-platform/tests/media-source/URL-createObjectURL.html @@ -0,0 +1,20 @@ + + + + + URL.createObjectURL(mediaSource) + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/import_tests.sh b/testing/web-platform/tests/media-source/import_tests.sh new file mode 100755 index 000000000..a87619c02 --- /dev/null +++ b/testing/web-platform/tests/media-source/import_tests.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +if [ $# -lt 1 ] +then + echo "Usage: $0 " + exit -1 +fi + +BLINK_ROOT=$1 +LAYOUT_TEST_DIR=$BLINK_ROOT/LayoutTests +HTTP_MEDIA_TEST_DIR=$LAYOUT_TEST_DIR/http/tests/media + +if [ ! -d "$BLINK_ROOT" ] +then + echo "$BLINK_ROOT is not a directory or doesn't exist" + exit -1 +fi + +if [ ! -d "$LAYOUT_TEST_DIR" ] +then + echo "$LAYOUT_TEST_DIR is not a directory or doesn't exist" + exit -1 +fi + +#rm -rf *.html *.js webm mp4 manifest.txt + +cp $HTTP_MEDIA_TEST_DIR/media-source/mediasource-*.html $HTTP_MEDIA_TEST_DIR/media-source/mediasource-*.js . +cp -r $HTTP_MEDIA_TEST_DIR/resources/media-source/webm . +cp -r $HTTP_MEDIA_TEST_DIR/resources/media-source/mp4 . + +# Remove Blink-specific files +rm mediasource-gc-after-decode-error-crash.html + +sed -i 's/\/w3c\/resources\//\/resources\//g' *.html +sed -i 's/\/media\/resources\/media-source\///g' *.html +sed -i 's/\/media\/resources\/media-source\///g' *.js +sed -i 's/\/media\/resources\/media-source\///g' webm/* + + +for TEST_FILE in `ls *.html` +do + if [ "$TEST_FILE" = "index.html" ] + then + continue + fi + echo -e "$TEST_FILE" >> manifest.txt +done + +cp import_tests-template.txt index.html + +chmod -R a+r *.html *.js webm mp4 manifest.txt +chmod a+rx webm mp4 diff --git a/testing/web-platform/tests/media-source/interfaces.html b/testing/web-platform/tests/media-source/interfaces.html new file mode 100644 index 000000000..f7f6d7c83 --- /dev/null +++ b/testing/web-platform/tests/media-source/interfaces.html @@ -0,0 +1,143 @@ + + +Media Source Extensions IDL tests +
+ + + + + + + diff --git a/testing/web-platform/tests/media-source/manifest.txt b/testing/web-platform/tests/media-source/manifest.txt new file mode 100644 index 000000000..3ca784f17 --- /dev/null +++ b/testing/web-platform/tests/media-source/manifest.txt @@ -0,0 +1,55 @@ +interfaces.html +mediasource-activesourcebuffers.html +mediasource-addsourcebuffer.html +mediasource-addsourcebuffer-mode.html +mediasource-append-buffer.html +mediasource-appendbuffer-quota-exceeded.html +mediasource-appendwindow.html +mediasource-attach-stops-delaying-load-event.html +mediasource-avtracks.html +mediasource-buffered.html +mediasource-closed.html +mediasource-config-change-mp4-a-bitrate.html +mediasource-config-change-mp4-av-audio-bitrate.html +mediasource-config-change-mp4-av-framesize.html +mediasource-config-change-mp4-av-video-bitrate.html +mediasource-config-change-mp4-v-bitrate.html +mediasource-config-change-mp4-v-framerate.html +mediasource-config-change-mp4-v-framesize.html +mediasource-config-change-webm-a-bitrate.html +mediasource-config-change-webm-av-audio-bitrate.html +mediasource-config-change-webm-av-framesize.html +mediasource-config-change-webm-av-video-bitrate.html +mediasource-config-change-webm-v-bitrate.html +mediasource-config-change-webm-v-framerate.html +mediasource-config-change-webm-v-framesize.html +mediasource-detach.html +mediasource-duration-boundaryconditions.html +mediasource-duration.html +mediasource-endofstream.html +mediasource-endofstream-invaliderror.html +mediasource-errors.html +mediasource-is-type-supported.html +mediasource-liveseekable.html +mediasource-multiple-attach.html +mediasource-play.html +mediasource-play-then-seek-back.html +mediasource-preload.html +mediasource-redundant-seek.html +mediasource-remove.html +mediasource-removesourcebuffer.html +mediasource-seekable.html +mediasource-seek-beyond-duration.html +mediasource-seek-during-pending-seek.html +mediasource-sequencemode-append-buffer.html +mediasource-sourcebufferlist.html +mediasource-sourcebuffer-mode.html +mediasource-sourcebuffer-mode-timestamps.html +mediasource-timestamp-offset.html +SourceBuffer-abort.html +SourceBuffer-abort-readyState.html +SourceBuffer-abort-removed.html +SourceBuffer-abort-updating.html +URL-createObjectURL.html +URL-createObjectURL-null.html +URL-createObjectURL-revoke.html diff --git a/testing/web-platform/tests/media-source/mediasource-activesourcebuffers.html b/testing/web-platform/tests/media-source/mediasource-activesourcebuffers.html new file mode 100644 index 000000000..02ebecc77 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-activesourcebuffers.html @@ -0,0 +1,238 @@ + + + + + Checks MediaSource.activeSourceBuffers and changes to selected/enabled track state + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-addsourcebuffer-mode.html b/testing/web-platform/tests/media-source/mediasource-addsourcebuffer-mode.html new file mode 100644 index 000000000..cf7f57f8e --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-addsourcebuffer-mode.html @@ -0,0 +1,31 @@ + + +Checks MediaSource.addSourceBuffer() sets SourceBuffer.mode appropriately + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mediasource-addsourcebuffer.html b/testing/web-platform/tests/media-source/mediasource-addsourcebuffer.html new file mode 100644 index 000000000..9fc946324 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-addsourcebuffer.html @@ -0,0 +1,154 @@ + + + + + MediaSource.addSourceBuffer() test cases + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-append-buffer.html b/testing/web-platform/tests/media-source/mediasource-append-buffer.html new file mode 100644 index 000000000..bca3f8951 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-append-buffer.html @@ -0,0 +1,539 @@ + + + + + SourceBuffer.appendBuffer() test cases + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-appendbuffer-quota-exceeded.html b/testing/web-platform/tests/media-source/mediasource-appendbuffer-quota-exceeded.html new file mode 100644 index 000000000..25eb941db --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-appendbuffer-quota-exceeded.html @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-appendwindow.html b/testing/web-platform/tests/media-source/mediasource-appendwindow.html new file mode 100644 index 000000000..272031a6e --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-appendwindow.html @@ -0,0 +1,176 @@ + + + + + SourceBuffer.appendWindowStart and SourceBuffer.appendWindowEnd test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-attach-stops-delaying-load-event.html b/testing/web-platform/tests/media-source/mediasource-attach-stops-delaying-load-event.html new file mode 100644 index 000000000..6b5d5b0ad --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-attach-stops-delaying-load-event.html @@ -0,0 +1,49 @@ + + +Tests that MediaSource attachment stops delaying the load event. + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-avtracks.html b/testing/web-platform/tests/media-source/mediasource-avtracks.html new file mode 100644 index 000000000..26ae5bcfe --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-avtracks.html @@ -0,0 +1,124 @@ + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-buffered.html b/testing/web-platform/tests/media-source/mediasource-buffered.html new file mode 100644 index 000000000..38cd1717e --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-buffered.html @@ -0,0 +1,233 @@ + + + + + SourceBuffer.buffered test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-closed.html b/testing/web-platform/tests/media-source/mediasource-closed.html new file mode 100644 index 000000000..4b22cae85 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-closed.html @@ -0,0 +1,140 @@ + + + + + MediaSource.readyState equals "closed" test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-a-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-a-bitrate.html new file mode 100644 index 000000000..e5fe45f3a --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-a-bitrate.html @@ -0,0 +1,17 @@ + + + + + MP4 audio-only bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-audio-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-audio-bitrate.html new file mode 100644 index 000000000..007026b75 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-audio-bitrate.html @@ -0,0 +1,17 @@ + + + + + MP4 muxed audio & video with an audio bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-framesize.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-framesize.html new file mode 100644 index 000000000..202e09dbc --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-framesize.html @@ -0,0 +1,17 @@ + + + + + MP4 muxed audio & video with a video frame size change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-video-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-video-bitrate.html new file mode 100644 index 000000000..640a816de --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-av-video-bitrate.html @@ -0,0 +1,17 @@ + + + + + MP4 muxed audio & video with a video bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-bitrate.html new file mode 100644 index 000000000..705c5bd3c --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-bitrate.html @@ -0,0 +1,17 @@ + + + + + MP4 video-only bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framerate.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framerate.html new file mode 100644 index 000000000..078236cd1 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framerate.html @@ -0,0 +1,17 @@ + + + + + MP4 video-only frame rate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framesize.html b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framesize.html new file mode 100644 index 000000000..cb83908c4 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-mp4-v-framesize.html @@ -0,0 +1,17 @@ + + + + + MP4 video-only frame size change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-a-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-a-bitrate.html new file mode 100644 index 000000000..cc351cd30 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-a-bitrate.html @@ -0,0 +1,17 @@ + + + + + WebM audio-only bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-audio-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-audio-bitrate.html new file mode 100644 index 000000000..082e5a813 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-audio-bitrate.html @@ -0,0 +1,17 @@ + + + + + WebM muxed audio & video with an audio bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-framesize.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-framesize.html new file mode 100644 index 000000000..c37f8c2ed --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-framesize.html @@ -0,0 +1,17 @@ + + + + + WebM muxed audio & video with a video frame size change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-video-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-video-bitrate.html new file mode 100644 index 000000000..0fe6c358e --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-av-video-bitrate.html @@ -0,0 +1,17 @@ + + + + + WebM muxed audio & video with a video bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-bitrate.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-bitrate.html new file mode 100644 index 000000000..e194e267d --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-bitrate.html @@ -0,0 +1,17 @@ + + + + + WebM video-only bitrate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framerate.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framerate.html new file mode 100644 index 000000000..fb0100c7b --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framerate.html @@ -0,0 +1,17 @@ + + + + + WebM video-only frame rate change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framesize.html b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framesize.html new file mode 100644 index 000000000..ca13c78a3 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-change-webm-v-framesize.html @@ -0,0 +1,17 @@ + + + + + WebM video-only frame size change. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-config-changes.js b/testing/web-platform/tests/media-source/mediasource-config-changes.js new file mode 100644 index 000000000..ea99b8ba5 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-config-changes.js @@ -0,0 +1,113 @@ +// Copyright © 2016 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). + +// Extract & return the resolution string from a filename, if any. +function resolutionFromFilename(filename) +{ + resolution = filename.replace(/^.*[^0-9]([0-9]+x[0-9]+)[^0-9].*$/, "$1"); + if (resolution != filename) { + return resolution; + } + return ""; +} + +function appendBuffer(test, sourceBuffer, data) +{ + test.expectEvent(sourceBuffer, "update"); + test.expectEvent(sourceBuffer, "updateend"); + sourceBuffer.appendBuffer(data); +} + +function mediaSourceConfigChangeTest(directory, idA, idB, description) +{ + var manifestFilenameA = directory + "/test-" + idA + "-manifest.json"; + var manifestFilenameB = directory + "/test-" + idB + "-manifest.json"; + mediasource_test(function(test, mediaElement, mediaSource) + { + mediaElement.pause(); + mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'")); + var expectResizeEvents = resolutionFromFilename(manifestFilenameA) != resolutionFromFilename(manifestFilenameB); + var expectedResizeEventCount = 0; + + MediaSourceUtil.fetchManifestAndData(test, manifestFilenameA, function(typeA, dataA) + { + MediaSourceUtil.fetchManifestAndData(test, manifestFilenameB, function(typeB, dataB) + { + assert_equals(typeA, typeB, "Media format types match"); + + var sourceBuffer = mediaSource.addSourceBuffer(typeA); + + appendBuffer(test, sourceBuffer, dataA); + ++expectedResizeEventCount; + + test.waitForExpectedEvents(function() + { + // Add the second buffer starting at 0.5 second. + sourceBuffer.timestampOffset = 0.5; + appendBuffer(test, sourceBuffer, dataB); + ++expectedResizeEventCount; + }); + + test.waitForExpectedEvents(function() + { + // Add the first buffer starting at 1 second. + sourceBuffer.timestampOffset = 1; + appendBuffer(test, sourceBuffer, dataA); + ++expectedResizeEventCount; + }); + + test.waitForExpectedEvents(function() + { + // Add the second buffer starting at 1.5 second. + sourceBuffer.timestampOffset = 1.5; + appendBuffer(test, sourceBuffer, dataB); + ++expectedResizeEventCount; + }); + + test.waitForExpectedEvents(function() + { + assert_false(sourceBuffer.updating, "updating"); + + // Truncate the presentation to a duration of 2 seconds. + sourceBuffer.remove(2, Infinity); + + assert_true(sourceBuffer.updating, "updating"); + test.expectEvent(sourceBuffer, 'updatestart', 'sourceBuffer'); + test.expectEvent(sourceBuffer, 'update', 'sourceBuffer'); + test.expectEvent(sourceBuffer, 'updateend', 'sourceBuffer'); + }); + + test.waitForExpectedEvents(function() + { + assert_false(sourceBuffer.updating, "updating"); + assert_greater_than(mediaSource.duration, 2, "duration"); + + // Truncate the presentation to a duration of 2 seconds. + mediaSource.duration = 2; + + test.expectEvent(mediaElement, "durationchange"); + }); + + test.waitForExpectedEvents(function() + { + assert_false(sourceBuffer.updating, "updating"); + + mediaSource.endOfStream(); + + assert_false(sourceBuffer.updating, "updating"); + + if (expectResizeEvents) { + for (var i = 0; i < expectedResizeEventCount; ++i) { + test.expectEvent(mediaElement, "resize"); + } + } + test.expectEvent(mediaElement, "ended"); + mediaElement.play(); + }); + + test.waitForExpectedEvents(function() { + test.done(); + }); + }); + }); + }, description); +}; diff --git a/testing/web-platform/tests/media-source/mediasource-detach.html b/testing/web-platform/tests/media-source/mediasource-detach.html new file mode 100644 index 000000000..b25b5c6f0 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-detach.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-duration-boundaryconditions.html b/testing/web-platform/tests/media-source/mediasource-duration-boundaryconditions.html new file mode 100644 index 000000000..b95e495cb --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-duration-boundaryconditions.html @@ -0,0 +1,63 @@ + + + + + MediaSource.duration boundary condition test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-duration.html b/testing/web-platform/tests/media-source/mediasource-duration.html new file mode 100644 index 000000000..4bc0fb2d7 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-duration.html @@ -0,0 +1,383 @@ + + + + + MediaSource.duration & HTMLMediaElement.duration test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-endofstream-invaliderror.html b/testing/web-platform/tests/media-source/mediasource-endofstream-invaliderror.html new file mode 100644 index 000000000..0327e44cc --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-endofstream-invaliderror.html @@ -0,0 +1,53 @@ + + + + + Invalid MediaSource.endOfStream() parameter test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-endofstream.html b/testing/web-platform/tests/media-source/mediasource-endofstream.html new file mode 100644 index 000000000..bca80af81 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-endofstream.html @@ -0,0 +1,76 @@ + + +Calls to MediaSource.endOfStream() without error + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-errors.html b/testing/web-platform/tests/media-source/mediasource-errors.html new file mode 100644 index 000000000..3df1dedcc --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-errors.html @@ -0,0 +1,234 @@ + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-getvideoplaybackquality.html b/testing/web-platform/tests/media-source/mediasource-getvideoplaybackquality.html new file mode 100644 index 000000000..f92fdbc3c --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-getvideoplaybackquality.html @@ -0,0 +1,117 @@ + + + + + HTMLVideoElement.getVideoPlaybackQuality() test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-is-type-supported.html b/testing/web-platform/tests/media-source/mediasource-is-type-supported.html new file mode 100644 index 000000000..985e20626 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-is-type-supported.html @@ -0,0 +1,87 @@ + + + + + MediaSource.isTypeSupported() test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-liveseekable.html b/testing/web-platform/tests/media-source/mediasource-liveseekable.html new file mode 100644 index 000000000..a2f05a9cd --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-liveseekable.html @@ -0,0 +1,137 @@ + + + +Checks setting/clearing the live seekable range and HTMLMediaElement.seekable + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-multiple-attach.html b/testing/web-platform/tests/media-source/mediasource-multiple-attach.html new file mode 100644 index 000000000..4a95a42e8 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-multiple-attach.html @@ -0,0 +1,114 @@ + + + + + Test Attaching a MediaSource to multiple HTMLMediaElements. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-play-then-seek-back.html b/testing/web-platform/tests/media-source/mediasource-play-then-seek-back.html new file mode 100644 index 000000000..66fdbe810 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-play-then-seek-back.html @@ -0,0 +1,57 @@ + + + + + Simple MediaSource playback & seek test case. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-play.html b/testing/web-platform/tests/media-source/mediasource-play.html new file mode 100644 index 000000000..5bbfa29d7 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-play.html @@ -0,0 +1,54 @@ + + + + + Simple MediaSource playback test case. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-preload.html b/testing/web-platform/tests/media-source/mediasource-preload.html new file mode 100644 index 000000000..e387b6373 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-preload.html @@ -0,0 +1,72 @@ + + + + + Various MediaSource HTMLMediaElement preload tests. + + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-redundant-seek.html b/testing/web-platform/tests/media-source/mediasource-redundant-seek.html new file mode 100644 index 000000000..05eae9714 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-redundant-seek.html @@ -0,0 +1,73 @@ + + + + + Test MediaSource behavior when receiving multiple seek requests during a pending seek. + + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-remove.html b/testing/web-platform/tests/media-source/mediasource-remove.html new file mode 100644 index 000000000..9a4eb3fc5 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-remove.html @@ -0,0 +1,324 @@ + + + + + + SourceBuffer.remove() test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-removesourcebuffer.html b/testing/web-platform/tests/media-source/mediasource-removesourcebuffer.html new file mode 100644 index 000000000..038856532 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-removesourcebuffer.html @@ -0,0 +1,146 @@ + + + + + MediaSource.removeSourceBuffer() test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-seek-beyond-duration.html b/testing/web-platform/tests/media-source/mediasource-seek-beyond-duration.html new file mode 100644 index 000000000..8b07c9f80 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-seek-beyond-duration.html @@ -0,0 +1,105 @@ + + + + + Test MediaSource behavior when seeking beyond the duration of the clip. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-seek-during-pending-seek.html b/testing/web-platform/tests/media-source/mediasource-seek-during-pending-seek.html new file mode 100644 index 000000000..60c5eec1c --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-seek-during-pending-seek.html @@ -0,0 +1,189 @@ + + + + + Test MediaSource behavior when a seek is requested while another seek is pending. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-seekable.html b/testing/web-platform/tests/media-source/mediasource-seekable.html new file mode 100644 index 000000000..c379a63ba --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-seekable.html @@ -0,0 +1,64 @@ + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-sequencemode-append-buffer.html b/testing/web-platform/tests/media-source/mediasource-sequencemode-append-buffer.html new file mode 100644 index 000000000..92a01abcc --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-sequencemode-append-buffer.html @@ -0,0 +1,140 @@ + + + + + SourceBuffer.mode == "sequence" test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode-timestamps.html b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode-timestamps.html new file mode 100644 index 000000000..c5816968b --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode-timestamps.html @@ -0,0 +1,52 @@ + + + + + SourceBuffer#mode with generate timestamps flag true + + + + +
+ + + + diff --git a/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode.html b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode.html new file mode 100644 index 000000000..521fa7f92 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-mode.html @@ -0,0 +1,142 @@ + + + + + + SourceBuffer.mode test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-sourcebuffer-trackdefaults.html b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-trackdefaults.html new file mode 100644 index 000000000..0eb9d2643 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-sourcebuffer-trackdefaults.html @@ -0,0 +1,78 @@ + + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-sourcebufferlist.html b/testing/web-platform/tests/media-source/mediasource-sourcebufferlist.html new file mode 100644 index 000000000..760e6df46 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-sourcebufferlist.html @@ -0,0 +1,97 @@ + + + + + SourceBufferList test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-timestamp-offset.html b/testing/web-platform/tests/media-source/mediasource-timestamp-offset.html new file mode 100644 index 000000000..22e429286 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-timestamp-offset.html @@ -0,0 +1,125 @@ + + + + + SourceBuffer.timestampOffset test cases. + + + + + +
+ + + diff --git a/testing/web-platform/tests/media-source/mediasource-trackdefault.html b/testing/web-platform/tests/media-source/mediasource-trackdefault.html new file mode 100644 index 000000000..5fc2e5e97 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-trackdefault.html @@ -0,0 +1,101 @@ + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-trackdefaultlist.html b/testing/web-platform/tests/media-source/mediasource-trackdefaultlist.html new file mode 100644 index 000000000..cceda8be4 --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-trackdefaultlist.html @@ -0,0 +1,60 @@ + + + + + + diff --git a/testing/web-platform/tests/media-source/mediasource-util.js b/testing/web-platform/tests/media-source/mediasource-util.js new file mode 100644 index 000000000..15a56e83f --- /dev/null +++ b/testing/web-platform/tests/media-source/mediasource-util.js @@ -0,0 +1,407 @@ +(function(window) { + var SEGMENT_INFO_LIST = [ + { + url: 'mp4/test.mp4', + type: 'video/mp4; codecs="mp4a.40.2,avc1.4d400d"', + duration: 6.549, + init: { offset: 0, size: 1413 }, + media: [ + { offset: 1413, size: 24034, timev: 0.095000, timea: 0, endtimev: 0.896666, endtimea: 0.882358 }, + { offset: 25447, size: 21757, timev: 0.896666, timea: 0.882358, endtimev: 1.696666, endtimea: 1.671836 }, + { offset: 47204, size: 23591, timev: 1.696666, timea: 1.671836, endtimev: 2.498333, endtimea: 2.461315 }, + { offset: 70795, size: 22614, timev: 2.498333, timea: 2.461315, endtimev: 3.298333, endtimea: 3.297233 }, + { offset: 93409, size: 18353, timev: 3.298333, timea: 3.297233, endtimev: 4.100000, endtimea: 4.086712}, + { offset: 111762, size: 23935, timev: 4.100000, timea: 4.086712, endtimev: 4.900000, endtimea: 4.876190 }, + { offset: 135697, size: 21911, timev: 4.900000, timea: 4.876190, endtimev: 5.701666, endtimea: 5.665668 }, + { offset: 157608, size: 23776, timev: 5.701666, timea: 5.665668, endtimev: 6.501666, endtimea: 6.501587 }, + { offset: 181384, size: 5843, timev: 6.501666, timea: 6.501587, endtimev: 6.501666, endtimea: 6.501678 }, + ] + }, + { + url: 'webm/test.webm', + type: 'video/webm; codecs="vp8, vorbis"', + duration: 6.552, + init: { offset: 0, size: 4116 }, + media: [ + { offset: 4116, size: 26583, timev: 0.112000, timea: 0, endtimev: 0.913000, endtimea: 0.912000 }, + { offset: 30699, size: 20555, timev: 0.913000, timea: 0.912000, endtimev: 1.714000, endtimea: 1.701000 }, + { offset: 51254, size: 22668, timev: 1.714000, timea: 1.701000, endtimev: 2.515000, endtimea: 2.514000 }, + { offset: 73922, size: 21943, timev: 2.515000, timea: 2.514000, endtimev: 3.315000, endtimea: 3.303000 }, + { offset: 95865, size: 23015, timev: 3.315000, timea: 3.303000, endtimev: 4.116000, endtimea: 4.093000}, + { offset: 118880, size: 20406, timev: 4.116000, timea: 4.093000, endtimev: 4.917000, endtimea: 4.906000 }, + { offset: 139286, size: 21537, timev: 4.917000, timea: 4.906000, endtimev: 5.718000, endtimea: 5.695000 }, + { offset: 160823, size: 24027, timev: 5.718000, timea: 5.695000, endtimev: 6.519000, endtimea: 6.508000 }, + { offset: 184850, size: 5955, timev: 6.519000, timea: 6.508000, endtimev: 6.577000, endtimea: 6.577000}, + ], + } + ]; + EventExpectationsManager = function(test) + { + this.test_ = test; + this.eventTargetList_ = []; + this.waitCallbacks_ = []; + }; + + EventExpectationsManager.prototype.expectEvent = function(object, eventName, description) + { + var eventInfo = { 'target': object, 'type': eventName, 'description': description}; + var expectations = this.getExpectations_(object); + expectations.push(eventInfo); + + var t = this; + var waitHandler = this.test_.step_func(this.handleWaitCallback_.bind(this)); + var eventHandler = this.test_.step_func(function(event) + { + object.removeEventListener(eventName, eventHandler); + var expected = expectations[0]; + assert_equals(event.target, expected.target, "Event target match."); + assert_equals(event.type, expected.type, "Event types match."); + assert_equals(eventInfo.description, expected.description, "Descriptions match for '" + event.type + "'."); + + expectations.shift(1); + if (t.waitCallbacks_.length > 1) + setTimeout(waitHandler, 0); + else if (t.waitCallbacks_.length == 1) { + // Immediately call the callback. + waitHandler(); + } + }); + object.addEventListener(eventName, eventHandler); + }; + + EventExpectationsManager.prototype.waitForExpectedEvents = function(callback) + { + this.waitCallbacks_.push(callback); + setTimeout(this.test_.step_func(this.handleWaitCallback_.bind(this)), 0); + }; + + EventExpectationsManager.prototype.expectingEvents = function() + { + for (var i = 0; i < this.eventTargetList_.length; ++i) { + if (this.eventTargetList_[i].expectations.length > 0) { + return true; + } + } + return false; + } + + EventExpectationsManager.prototype.handleWaitCallback_ = function() + { + if (this.waitCallbacks_.length == 0 || this.expectingEvents()) + return; + var callback = this.waitCallbacks_.shift(1); + callback(); + }; + + EventExpectationsManager.prototype.getExpectations_ = function(target) + { + for (var i = 0; i < this.eventTargetList_.length; ++i) { + var info = this.eventTargetList_[i]; + if (info.target == target) { + return info.expectations; + } + } + var expectations = []; + this.eventTargetList_.push({ 'target': target, 'expectations': expectations }); + return expectations; + }; + + function loadData_(test, url, callback, isBinary) + { + var request = new XMLHttpRequest(); + request.open("GET", url, true); + if (isBinary) { + request.responseType = 'arraybuffer'; + } + request.onload = test.step_func(function(event) + { + if (request.status != 200) { + assert_unreached("Unexpected status code : " + request.status); + return; + } + var response = request.response; + if (isBinary) { + response = new Uint8Array(response); + } + callback(response); + }); + request.onerror = test.step_func(function(event) + { + assert_unreached("Unexpected error"); + }); + request.send(); + } + + function openMediaSource_(test, mediaTag, callback) + { + var mediaSource = new MediaSource(); + var mediaSourceURL = URL.createObjectURL(mediaSource); + + var eventHandler = test.step_func(onSourceOpen); + function onSourceOpen(event) + { + mediaSource.removeEventListener('sourceopen', eventHandler); + URL.revokeObjectURL(mediaSourceURL); + callback(mediaSource); + } + + mediaSource.addEventListener('sourceopen', eventHandler); + mediaTag.src = mediaSourceURL; + } + + var MediaSourceUtil = {}; + + MediaSourceUtil.loadTextData = function(test, url, callback) + { + loadData_(test, url, callback, false); + }; + + MediaSourceUtil.loadBinaryData = function(test, url, callback) + { + loadData_(test, url, callback, true); + }; + + MediaSourceUtil.fetchManifestAndData = function(test, manifestFilename, callback) + { + var baseURL = ''; + var manifestURL = baseURL + manifestFilename; + MediaSourceUtil.loadTextData(test, manifestURL, function(manifestText) + { + var manifest = JSON.parse(manifestText); + + assert_true(MediaSource.isTypeSupported(manifest.type), manifest.type + " is supported."); + + var mediaURL = baseURL + manifest.url; + MediaSourceUtil.loadBinaryData(test, mediaURL, function(mediaData) + { + callback(manifest.type, mediaData); + }); + }); + }; + + MediaSourceUtil.extractSegmentData = function(mediaData, info) + { + var start = info.offset; + var end = start + info.size; + return mediaData.subarray(start, end); + } + + MediaSourceUtil.getMediaDataForPlaybackTime = function(mediaData, segmentInfo, playbackTimeToAdd) + { + assert_less_than_equal(playbackTimeToAdd, segmentInfo.duration); + var mediaInfo = segmentInfo.media; + var start = mediaInfo[0].offset; + var numBytes = 0; + var segmentIndex = 0; + while (segmentIndex < mediaInfo.length + && Math.min(mediaInfo[segmentIndex].timev, mediaInfo[segmentIndex].timea) <= playbackTimeToAdd) + { + numBytes += mediaInfo[segmentIndex].size; + ++segmentIndex; + } + return mediaData.subarray(start, numBytes + start); + } + + function getFirstSupportedType(typeList) + { + for (var i = 0; i < typeList.length; ++i) { + if (window.MediaSource && MediaSource.isTypeSupported(typeList[i])) + return typeList[i]; + } + return ""; + } + + function getSegmentInfo() + { + for (var i = 0; i < SEGMENT_INFO_LIST.length; ++i) { + var segmentInfo = SEGMENT_INFO_LIST[i]; + if (window.MediaSource && MediaSource.isTypeSupported(segmentInfo.type)) { + return segmentInfo; + } + } + return null; + } + + var audioOnlyTypes = ['audio/mp4;codecs="mp4a.40.2"', 'audio/webm;codecs="vorbis"']; + var videoOnlyTypes = ['video/mp4;codecs="avc1.4D4001"', 'video/webm;codecs="vp8"']; + var audioVideoTypes = ['video/mp4;codecs="avc1.4D4001,mp4a.40.2"', 'video/webm;codecs="vp8,vorbis"']; + MediaSourceUtil.AUDIO_ONLY_TYPE = getFirstSupportedType(audioOnlyTypes); + MediaSourceUtil.VIDEO_ONLY_TYPE = getFirstSupportedType(videoOnlyTypes); + MediaSourceUtil.AUDIO_VIDEO_TYPE = getFirstSupportedType(audioVideoTypes); + MediaSourceUtil.SEGMENT_INFO = getSegmentInfo(); + + MediaSourceUtil.getSubType = function(mimetype) { + var slashIndex = mimetype.indexOf("/"); + var semicolonIndex = mimetype.indexOf(";"); + if (slashIndex <= 0) { + assert_unreached("Invalid mimetype '" + mimetype + "'"); + return; + } + + var start = slashIndex + 1; + if (semicolonIndex >= 0) { + if (semicolonIndex <= start) { + assert_unreached("Invalid mimetype '" + mimetype + "'"); + return; + } + + return mimetype.substr(start, semicolonIndex - start) + } + + return mimetype.substr(start); + }; + + MediaSourceUtil.append = function(test, sourceBuffer, data, callback) + { + function onUpdate() { + sourceBuffer.removeEventListener("update", onUpdate); + callback(); + } + sourceBuffer.addEventListener("update", onUpdate); + + sourceBuffer.addEventListener('error', test.unreached_func("Unexpected event 'error'")); + + sourceBuffer.appendBuffer(data); + }; + + MediaSourceUtil.appendUntilEventFires = function(test, mediaElement, eventName, sourceBuffer, mediaData, segmentInfo, startingIndex) + { + var eventFired = false; + function onEvent() { + mediaElement.removeEventListener(eventName, onEvent); + eventFired = true; + } + mediaElement.addEventListener(eventName, onEvent); + + var i = startingIndex; + var onAppendDone = function() { + if (eventFired || (i >= (segmentInfo.media.length - 1))) + return; + + i++; + if (i < segmentInfo.media.length) + { + MediaSourceUtil.append(test, sourceBuffer, MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.media[i]), onAppendDone); + } + }; + MediaSourceUtil.append(test, sourceBuffer, MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.media[i]), onAppendDone); + + }; + + function addExtraTestMethods(test) + { + test.eventExpectations_ = new EventExpectationsManager(test); + test.expectEvent = function(object, eventName, description) + { + test.eventExpectations_.expectEvent(object, eventName, description); + }; + + test.waitForExpectedEvents = function(callback) + { + test.eventExpectations_.waitForExpectedEvents(callback); + }; + + test.waitForCurrentTimeChange = function(mediaElement, callback) + { + var initialTime = mediaElement.currentTime; + + var onTimeUpdate = test.step_func(function() + { + if (mediaElement.currentTime != initialTime) { + mediaElement.removeEventListener('timeupdate', onTimeUpdate); + callback(); + } + }); + + mediaElement.addEventListener('timeupdate', onTimeUpdate); + } + + var oldTestDone = test.done.bind(test); + test.done = function() + { + if (test.status == test.PASS) { + assert_false(test.eventExpectations_.expectingEvents(), "No pending event expectations."); + } + oldTestDone(); + }; + }; + + window['MediaSourceUtil'] = MediaSourceUtil; + window['media_test'] = function(testFunction, description, options) + { + options = options || {}; + return async_test(function(test) + { + addExtraTestMethods(test); + testFunction(test); + }, description, options); + }; + window['mediasource_test'] = function(testFunction, description, options) + { + return media_test(function(test) + { + var mediaTag = document.createElement("video"); + if (!document.body) { + document.body = document.createElement("body"); + } + document.body.appendChild(mediaTag); + + test.removeMediaElement_ = true; + test.add_cleanup(function() + { + if (test.removeMediaElement_) { + document.body.removeChild(mediaTag); + test.removeMediaElement_ = false; + } + }); + + openMediaSource_(test, mediaTag, function(mediaSource) + { + testFunction(test, mediaTag, mediaSource); + }); + }, description, options); + }; + + window['mediasource_testafterdataloaded'] = function(testFunction, description, options) + { + mediasource_test(function(test, mediaElement, mediaSource) + { + var segmentInfo = MediaSourceUtil.SEGMENT_INFO; + + if (!segmentInfo) { + assert_unreached("No segment info compatible with this MediaSource implementation."); + return; + } + + mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'")); + + var sourceBuffer = mediaSource.addSourceBuffer(segmentInfo.type); + MediaSourceUtil.loadBinaryData(test, segmentInfo.url, function(mediaData) + { + testFunction(test, mediaElement, mediaSource, segmentInfo, sourceBuffer, mediaData); + }); + }, description, options); + } + + function timeRangesToString(ranges) + { + var s = "{"; + for (var i = 0; i < ranges.length; ++i) { + s += " [" + ranges.start(i).toFixed(3) + ", " + ranges.end(i).toFixed(3) + ")"; + } + return s + " }"; + } + + window['assertBufferedEquals'] = function(obj, expected, description) + { + var actual = timeRangesToString(obj.buffered); + assert_equals(actual, expected, description); + }; + + window['assertSeekableEquals'] = function(obj, expected, description) + { + var actual = timeRangesToString(obj.seekable); + assert_equals(actual, expected, description); + }; + +})(window); diff --git a/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch-manifest.json b/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch-manifest.json new file mode 100644 index 000000000..f3caa460e --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-a-128k-44100Hz-1ch.mp4", + "type": "audio/mp4;codecs=\"mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch.mp4 b/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch.mp4 new file mode 100644 index 000000000..fc7832a5b Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-a-128k-44100Hz-1ch.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch-manifest.json b/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch-manifest.json new file mode 100644 index 000000000..41a6f339b --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-a-192k-44100Hz-1ch.mp4", + "type": "audio/mp4;codecs=\"mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch.mp4 b/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch.mp4 new file mode 100644 index 000000000..864a87d25 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-a-192k-44100Hz-1ch.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..7731e3170 --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001,mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4 new file mode 100644 index 000000000..e623e8ee4 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..78ded611f --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001,mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4 new file mode 100644 index 000000000..946167b56 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..ba46349f9 --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001,mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4 new file mode 100644 index 000000000..ace4bee53 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..24da9b4ce --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001,mp4a.40.2\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4 new file mode 100644 index 000000000..f224a5426 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr-manifest.json new file mode 100644 index 000000000..a31b6d024 --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-v-128k-320x240-24fps-8kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr.mp4 new file mode 100644 index 000000000..cc55f40fa Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-24fps-8kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..3e0284410 --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-v-128k-320x240-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr.mp4 new file mode 100644 index 000000000..68d02cdfe Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-v-128k-320x240-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..10c4f4bcb --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-v-128k-640x480-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr.mp4 new file mode 100644 index 000000000..c4f47f035 Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-v-128k-640x480-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..42d3e1e52 --- /dev/null +++ b/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "mp4/test-v-256k-320x240-30fps-10kfr.mp4", + "type": "video/mp4;codecs=\"avc1.4D4001\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr.mp4 b/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr.mp4 new file mode 100644 index 000000000..6dc4972fd Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test-v-256k-320x240-30fps-10kfr.mp4 differ diff --git a/testing/web-platform/tests/media-source/mp4/test.mp4 b/testing/web-platform/tests/media-source/mp4/test.mp4 new file mode 100644 index 000000000..1b0e7b56a Binary files /dev/null and b/testing/web-platform/tests/media-source/mp4/test.mp4 differ diff --git a/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch-manifest.json b/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch-manifest.json new file mode 100644 index 000000000..524da8149 --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-a-128k-44100Hz-1ch.webm", + "type": "audio/webm;codecs=\"vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch.webm b/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch.webm new file mode 100644 index 000000000..c5b064deb Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-a-128k-44100Hz-1ch.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch-manifest.json b/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch-manifest.json new file mode 100644 index 000000000..7f2fa1e8c --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-a-192k-44100Hz-1ch.webm", + "type": "audio/webm;codecs=\"vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch.webm b/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch.webm new file mode 100644 index 000000000..53814d3bd Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-a-192k-44100Hz-1ch.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..af9f07af1 --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8,vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm new file mode 100644 index 000000000..8b705dbc8 Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-320x240-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..f7ec86b3d --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8,vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm new file mode 100644 index 000000000..c5e010e3c Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-av-384k-44100Hz-1ch-640x480-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..96a59db58 --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8,vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm new file mode 100644 index 000000000..62c43288e Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-av-448k-44100Hz-1ch-640x480-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..86723b34a --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8,vorbis\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm new file mode 100644 index 000000000..93c31b6a9 Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-av-640k-44100Hz-1ch-640x480-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr-manifest.json new file mode 100644 index 000000000..00e103aca --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-v-128k-320x240-24fps-8kfr.webm", + "type": "video/webm;codecs=\"vp8\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr.webm b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr.webm new file mode 100644 index 000000000..189c472f9 Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-24fps-8kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..fdeeb401d --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-v-128k-320x240-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr.webm new file mode 100644 index 000000000..18b2bafc3 Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-v-128k-320x240-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr-manifest.json new file mode 100644 index 000000000..4e3046066 --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-v-128k-640x480-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr.webm new file mode 100644 index 000000000..75e38b0bf Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-v-128k-640x480-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr-manifest.json b/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr-manifest.json new file mode 100644 index 000000000..3470674bf --- /dev/null +++ b/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr-manifest.json @@ -0,0 +1,4 @@ +{ + "url": "webm/test-v-256k-320x240-30fps-10kfr.webm", + "type": "video/webm;codecs=\"vp8\"" +} \ No newline at end of file diff --git a/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr.webm b/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr.webm new file mode 100644 index 000000000..0250d26fa Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-v-256k-320x240-30fps-10kfr.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test-vp8-vorbis-webvtt.webm b/testing/web-platform/tests/media-source/webm/test-vp8-vorbis-webvtt.webm new file mode 100644 index 000000000..c626f86e3 Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test-vp8-vorbis-webvtt.webm differ diff --git a/testing/web-platform/tests/media-source/webm/test.webm b/testing/web-platform/tests/media-source/webm/test.webm new file mode 100644 index 000000000..3a601805d Binary files /dev/null and b/testing/web-platform/tests/media-source/webm/test.webm differ -- cgit v1.2.3