diff --git a/dom/media/test/bipbop-cenc1-audio1.m4s b/dom/media/test/bipbop-cenc1-audio1.m4s deleted file mode 100644 index 63cfd66f7efc..000000000000 Binary files a/dom/media/test/bipbop-cenc1-audio1.m4s and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-audio2.m4s b/dom/media/test/bipbop-cenc1-audio2.m4s deleted file mode 100644 index 04a6cb6ff9cf..000000000000 Binary files a/dom/media/test/bipbop-cenc1-audio2.m4s and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-audio3.m4s b/dom/media/test/bipbop-cenc1-audio3.m4s deleted file mode 100644 index ad0cd72f903f..000000000000 Binary files a/dom/media/test/bipbop-cenc1-audio3.m4s and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-audioinit.mp4 b/dom/media/test/bipbop-cenc1-audioinit.mp4 deleted file mode 100644 index 1fb0078c1d12..000000000000 Binary files a/dom/media/test/bipbop-cenc1-audioinit.mp4 and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-video1.m4s b/dom/media/test/bipbop-cenc1-video1.m4s deleted file mode 100644 index 755013c11c8f..000000000000 Binary files a/dom/media/test/bipbop-cenc1-video1.m4s and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-video2.m4s b/dom/media/test/bipbop-cenc1-video2.m4s deleted file mode 100644 index c884bd95fc44..000000000000 Binary files a/dom/media/test/bipbop-cenc1-video2.m4s and /dev/null differ diff --git a/dom/media/test/bipbop-cenc1-videoinit.mp4 b/dom/media/test/bipbop-cenc1-videoinit.mp4 deleted file mode 100644 index 41160099c82f..000000000000 Binary files a/dom/media/test/bipbop-cenc1-videoinit.mp4 and /dev/null differ diff --git a/dom/media/test/bipbop-frag-cenc-audio.xml b/dom/media/test/bipbop-frag-cenc-audio.xml deleted file mode 100644 index eacd9a4f17bd..000000000000 --- a/dom/media/test/bipbop-frag-cenc-audio.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/dom/media/test/bipbop-frag-cenc-video.xml b/dom/media/test/bipbop-frag-cenc-video.xml deleted file mode 100644 index fb8d5b77948f..000000000000 --- a/dom/media/test/bipbop-frag-cenc-video.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/dom/media/test/eme.js b/dom/media/test/eme.js index e8cd30deae82..4190030e8a86 100644 --- a/dom/media/test/eme.js +++ b/dom/media/test/eme.js @@ -34,14 +34,6 @@ function StringToArrayBuffer(str) return arr; } -function StringToHex(str){ - var res = ""; - for (var i = 0; i < str.length; ++i) { - res += ("0" + str.charCodeAt(i).toString(16)).slice(-2); - } - return res; -} - function Base64ToHex(str) { var bin = window.atob(str.replace(/-/g, "+").replace(/_/g, "/")); @@ -97,8 +89,11 @@ function TimeRangesToString(trs) function SourceBufferToString(sb) { return ("SourceBuffer{" - + (sb.updating ? "updating, " : "") - + "buffered=" + TimeRangesToString(sb.buffered) + + "AppendMode=" + (sb.AppendMode || "-") + + ", updating=" + (sb.updating ? "true" : "false") + + ", buffered=" + TimeRangesToString(sb.buffered) + + ", audioTracks=" + (sb.audioTracks ? sb.audioTracks.length : "-") + + ", videoTracks=" + (sb.videoTracks ? sb.videoTracks.length : "-") + "}"); } @@ -312,7 +307,8 @@ function PlayMultiTrack(test, elem, token) } // Returns a promise that is resolved when the media element is ready to have -// its play() function called; when it's loaded MSE fragments. +// its play() function called; when it's loaded MSE fragments, or once the load +// has started for non-MSE video. function LoadTest(test, elem, token) { if (test.fragments) { @@ -353,103 +349,76 @@ function SetupEME(test, token, params) ? params.onSetKeysFail : bail(token + " Failed to set MediaKeys on