Bug 1487431 - Fix typo in mediasource test_FrameSelection_mp4.html to make last two tests work. r=bryce
authorJan-Ivar Bruaroey <jib@mozilla.com>
Fri, 31 Aug 2018 20:38:59 +0000
changeset 492125 bd82753f481a714f04d132bb4620ee5b90f73249
parent 492112 18320a6e8444c623aadf8e1b42ef8a04ab31d203
child 492126 f3caf291fde8f6d44ad921f97931c84578014b05
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbryce
bugs1487431
milestone63.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 1487431 - Fix typo in mediasource test_FrameSelection_mp4.html to make last two tests work. r=bryce Differential Revision: https://phabricator.services.mozilla.com/D4798
dom/media/mediasource/test/test_FrameSelection_mp4.html
--- a/dom/media/mediasource/test/test_FrameSelection_mp4.html
+++ b/dom/media/mediasource/test/test_FrameSelection_mp4.html
@@ -34,16 +34,16 @@ runWithMSE(async (ms, v) => {
   // We have nothing to play, waiting will be fired.
   await waitUntilTime(v, 1.5);
   await fetchAndLoad(sb, "bipbop/bipbop_480_624kbps-video", ["init"], ".mp4");
   sb.timestampOffset = 1.601666; // End of the video track buffered - time of first video sample (0.095).
   sb.appendWindowEnd = 1.796677; // Only allow room for three extra video frames (we need 3 as this video has b-frames).
   await fetchAndLoad(sb, "bipbop/bipbop_480_624kbps-video", ["1"], ".m4s");
   ms.endOfStream();
   await Promise.all([once(ms, "sourceended"), once(v, "playing"), once(v, "ended")]);
-  if (v.width, 640, "has proper width");
-  if (v.height, 480, "has proper height");
+  is(v.videoWidth, 640, "has proper width");
+  is(v.videoHeight, 480, "has proper height");
   SimpleTest.finish();
 });
 </script>
 </pre>
 </body>
 </html>