imported patch playback_rate_0_mochitest.patch
authorAnthony Jones <ajones@mozilla.com>
Fri, 29 Aug 2014 12:22:17 +1200
changeset 240877 7ceea5a3497ff4f30f0a2bbc22f088a44e94c591
parent 240875 ead111b1a1d3870c195616ca77d3d4546661d4f6
child 240878 2095190e5ffa4408d359f3ac999c9f7bac56736f
push id29874
push userjyavenard@mozilla.com
push dateFri, 29 Aug 2014 00:23:20 +0000
treeherdertry@b8a10e959a1d [default view] [failures only]
milestone34.0a1
imported patch playback_rate_0_mochitest.patch
content/media/test/test_playback_rate.html
--- a/content/media/test/test_playback_rate.html
+++ b/content/media/test/test_playback_rate.html
@@ -52,16 +52,17 @@ function ontimeupdate(e) {
     t.bufferingTime = 0;
 
     is(t.playbackRate, SLOW_RATE,
         "The playback rate shoud be "+SLOW_RATE+"." + t.token);
     ok(checkPlaybackRate(delta_wallclock, delta, SLOW_RATE, 0.25), "We are effectively slowing down playback. (" + delta_wallclock + ", " + delta + ") for " + t.token);
     t.removeEventListener("timeupdate", ontimeupdate);
     t.addEventListener("pause", onpaused);
     t.playbackRate = NULL_RATE;
+    t.play();
     t.oldCurrentTime = t.currentTime;
     setTimeout(function() {
       afterNullPlaybackRate(e);
     }, 100);
   }
 }
 
 function onpaused(e) {