Bug 1099187 - Use fuzz factor for currentTime in addition to duration. r=karlt
authorBobby Holley <bobbyholley@gmail.com>
Tue, 18 Nov 2014 09:58:53 -0800
changeset 240630 0345a17fb0401fa5a12b7fdeedc3a20437957358
parent 240629 156f8e3bc89d1385510a01335ffe526eb0005728
child 240631 f597a679642a498441affca8b19ece969c3cb399
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1099187
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1099187 - Use fuzz factor for currentTime in addition to duration. r=karlt
dom/media/mediasource/test/test_WaitingOnMissingData.html
--- a/dom/media/mediasource/test/test_WaitingOnMissingData.html
+++ b/dom/media/mediasource/test/test_WaitingOnMissingData.html
@@ -56,17 +56,17 @@ runWithMSE(function(ms, v) {
 
         info("Playing video. It should play for a bit, then fire 'waiting'");
         v.play();
       });
     });
   });
   v.addEventListener("ended", function () {
     ok(Math.abs(v.duration - 4) < 0.1, "Video has correct duration. This fuzz factor is due to bug 1065207");
-    is(v.currentTime, v.duration, "Video has correct current time: " + v.currentTime);
+    ok(Math.abs(v.currentTime - 4) < 0.1, "Video has correct currentTime. See bug 1101062");
     ok(gotWaiting, "Received waiting event and playback continued after data added");
     SimpleTest.finish();
   });
 });
 </script>
 </pre>
 </body>
 </html>