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 192557 ba2dde89f614192efb727aee8d6b87fe42c26c45
parent 192556 226410438634eaa94bfc29ea54e18fb99a1002d8
child 192558 5afb48ab69230026c8a58d6cfddad58d39504273
push id5833
push userryanvm@gmail.com
push dateTue, 29 Apr 2014 13:29:00 +0000
treeherdermozilla-aurora@ba2dde89f614 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, test-only
bugs916399, 1001317
milestone31.0a2
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
@@ -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>