diff --git a/dom/media/test/manifest.js b/dom/media/test/manifest.js index edca616fc12f..042a7f5cd5fc 100644 --- a/dom/media/test/manifest.js +++ b/dom/media/test/manifest.js @@ -672,6 +672,14 @@ var gEMETests = [ }, ]; +var gEMENonFragmentedTests = [ + { + name:"short-cenc.mp4", + type:"video/mp4; codecs=\"avc1.64000d,mp4a.40.2\"", + duration:0.47, + }, +]; + function checkMetadata(msg, e, test) { if (test.width) { is(e.videoWidth, test.width, msg + " video width"); diff --git a/dom/media/test/mochitest.ini b/dom/media/test/mochitest.ini index b74eb19699cc..7004465c2d5c 100644 --- a/dom/media/test/mochitest.ini +++ b/dom/media/test/mochitest.ini @@ -231,6 +231,7 @@ support-files = seek_support.js seekLies.sjs seek_with_sound.ogg^headers^ + short-cenc.mp4 sine.webm sine.webm^headers^ short-video.ogv @@ -367,6 +368,8 @@ skip-if = buildapp == 'b2g' && toolkit != 'gonk' # bug 1082984 skip-if = buildapp == 'b2g' || toolkit == 'android' || e10s # bug 1043403, bug 1057908 [test_eme_canvas_blocked.html] skip-if = buildapp == 'b2g' || toolkit == 'android' || e10s # bug 1043403, bug 1057908 +[test_eme_non_fragmented.html] +skip-if = buildapp == 'b2g' || toolkit == 'android' || e10s # bug 1043403, bug 1057908 [test_eme_obs_notification.html] skip-if = buildapp == 'b2g' || toolkit == 'android' || e10s # bug 1043403, bug 1057908 [test_eme_persistent_sessions.html] diff --git a/dom/media/test/short-cenc.mp4 b/dom/media/test/short-cenc.mp4 new file mode 100644 index 000000000000..aa44c3b9a187 Binary files /dev/null and b/dom/media/test/short-cenc.mp4 differ diff --git a/dom/media/test/short-cenc.xml b/dom/media/test/short-cenc.xml new file mode 100644 index 000000000000..9658c3e32ffb --- /dev/null +++ b/dom/media/test/short-cenc.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dom/media/test/test_eme_non_fragmented.html b/dom/media/test/test_eme_non_fragmented.html new file mode 100644 index 000000000000..a56bd33aa69e --- /dev/null +++ b/dom/media/test/test_eme_non_fragmented.html @@ -0,0 +1,109 @@ + + + + Bug 1131392 - Test that EME does not work for non-MSE media + + + + + + +
+
+
+ + +