Bug 1364296 - enable dom/media/test/test_unseekable.html on Android. draft
authorAlastor Wu <alwu@mozilla.com>
Mon, 15 May 2017 17:21:34 +0800
changeset 577745 637591622ceb504dad49c9280a0a69c3ae21ee88
parent 575938 d8762cb967423618ff0a488f14745f60964e5c49
child 628572 89671070d6424aac5e3fbfc55f0478df68dae3be
push id58769
push useralwu@mozilla.com
push dateMon, 15 May 2017 09:21:47 +0000
bugs1364296
milestone55.0a1
Bug 1364296 - enable dom/media/test/test_unseekable.html on Android. Now the fragent mp4 is seekable, so we should remove "street.mp4" from unseekable test. MozReview-Commit-ID: 9S18yj7rOjA
dom/media/test/manifest.js
dom/media/test/mochitest.ini
--- a/dom/media/test/manifest.js
+++ b/dom/media/test/manifest.js
@@ -598,24 +598,16 @@ if (manifestNavigator().userAgent.indexO
                                 .getService(SpecialPowers.Ci.nsIPropertyBag2)
                                 .getProperty(versionString);
 }
 
 function getAndroidVersion() {
   return androidVersion;
 }
 
-//Android supports fragmented MP4 playback from 4.3.
-//Fragmented MP4.
-if (getAndroidVersion() >= 18) {
-  gUnseekableTests = gUnseekableTests.concat([
-    { name:"street.mp4", type:"video/mp4" }
-  ]);
-}
-
 // These are files suitable for using with a "new Audio" constructor.
 var gAudioTests = [
   { name:"r11025_s16_c1.wav", type:"audio/x-wav", duration:1.0 },
   { name:"sound.ogg", type:"audio/ogg" },
   { name:"owl.mp3", type:"audio/mpeg", duration:3.343 },
   { name:"small-shot.m4a", type:"audio/mp4", duration:0.29 },
   { name:"bogus.duh", type:"bogus/duh", duration:123 }
 ];
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -1097,17 +1097,16 @@ skip-if = toolkit == 'android' # bug 129
 tags = webvtt
 [test_trackelementsrc.html]
 skip-if = toolkit == 'android' # android(bug 1232305)
 tags = webvtt
 [test_trackevent.html]
 skip-if = toolkit == 'android' # android(bug 1232305)
 tags = webvtt
 [test_unseekable.html]
-skip-if = toolkit == 'android' # android(bug 1232305)
 [test_video_to_canvas.html]
 skip-if = toolkit == 'android' # android(bug 1232305), bugs 1320418,1347953,1347954,1348140,1348386
 [test_video_in_audio_element.html]
 skip-if = android_version == '15' || android_version == '17' # bug 1320417, 1326326, android(bug 1232323, bug 1232305)
 [test_videoDocumentTitle.html]
 skip-if = toolkit == 'android' # android(bug 1232305)
 [test_VideoPlaybackQuality.html]
 skip-if = toolkit == 'android' # android(bug 1232305)