Bug 916399 - autoplay fails to activate due to Bug 1001317, call play() instead, r=cpearce
authorJW Wang <jwwang@mozilla.com>
Mon, 28 Apr 2014 00:59:00 -0700
changeset 181056 57bb3f64229132026e911099ace8089b25de3bbc
parent 181055 1b3d03b3493d9c1adb673473f0de6bcaacfa9322
child 181057 d8af7e51c4c0d83c4bc03b432db51d21dc71a394
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerscpearce
bugs916399, 1001317
milestone32.0a1
Bug 916399 - autoplay fails to activate due to Bug 1001317, call play() instead, r=cpearce
content/media/test/mochitest.ini
content/media/test/test_timeupdate_small_files.html
--- a/content/media/test/mochitest.ini
+++ b/content/media/test/mochitest.ini
@@ -436,17 +436,16 @@ skip-if = buildapp == 'b2g' # b2g(Value 
 [test_streams_tracks.html]
 [test_trackelementevent.html]
 [test_texttrack.html]
 [test_texttrackcue.html]
 [test_trackevent.html]
 [test_texttrackregion.html]
 [test_texttracklist.html]
 [test_timeupdate_small_files.html]
-skip-if = os == "linux" # Intermittent failures, bug 760770
 [test_unseekable.html]
 skip-if = buildapp == 'b2g'
 [test_VideoPlaybackQuality.html]
 [test_VideoPlaybackQuality_disabled.html]
 [test_webvtt_disabled.html]
 
 # [test_audioDocumentTitle.html] # disabled - See bug 475110
 # [test_error_in_video_document.html] # disabled - See bug 608634
--- a/content/media/test/test_timeupdate_small_files.html
+++ b/content/media/test/test_timeupdate_small_files.html
@@ -69,23 +69,23 @@ function startTest(test, token) {
   var v = document.createElement(type);
   v.token = token;
   manager.started(token);
   v.src = test.name;
   v._name = test.name;
   v._timeupdateCount = 0;
   v._finished = false;
   v.gotEnded = 0;
-  v.autoplay = true;
   v.addEventListener("ended", ended, false);
   v.addEventListener("timeupdate", timeupdate, false);
   for (var i = 0; i < eventsToLog.length; ++i) {
     v.addEventListener(eventsToLog[i], logEvent, false);
   }
   document.body.appendChild(v);
+  v.play();
 }
 
 manager.runTests(gSmallTests, startTest);
 
 </script>
 </pre>
 </body>
 </html>