Bug 916399 - Autoplay fails to activate due to Bug 1001317, call play() instead. r=cpearce, a=test-only
authorJW Wang <jwwang@mozilla.com>
Mon, 28 Apr 2014 00:59:00 -0700
changeset 192172 5dfe868c0bea
parent 192171 a7ab7384526e
child 192173 30a4e7382829
push id3508
push userryanvm@gmail.com
push date2014-04-29 13:25 +0000
Treeherderresults
reviewerscpearce, test-only
bugs916399, 1001317
milestone30.0
Bug 916399 - Autoplay fails to activate due to Bug 1001317, call play() instead. r=cpearce, a=test-only
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
@@ -440,17 +440,16 @@ skip-if = buildapp == 'b2g' # b2g(bug 90
 skip-if = buildapp == 'b2g' # b2g(Value being assigned to HTMLMediaElement.currentTime is not a finite floating-point value) b2g-debug(Value being assigned to HTMLMediaElement.currentTime is not a finite floating-point value) b2g-desktop(Value being assigned to HTMLMediaElement.currentTime is not a finite floating-point value)
 [test_streams_tracks.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>