Bug 1198168 - Skip the test on video 320x240.ogv. r?pehrsons. draft
authorChia-hung Tai <ctai@mozilla.com>
Tue, 23 Aug 2016 10:33:56 +0800
changeset 404173 7685eb64c96dd787b3c61d77b2d9003d9eea0f30
parent 404171 a859609a30f1e6f031649184fda2a5b5cc628c0d
child 529119 01ac37c52f4b40c0af5842896fe44ce4682bc7a2
push id27142
push userbmo:ctai@mozilla.com
push dateTue, 23 Aug 2016 02:34:32 +0000
reviewerspehrsons
bugs1198168
milestone51.0a1
Bug 1198168 - Skip the test on video 320x240.ogv. r?pehrsons. MozReview-Commit-ID: EUwNF1p9UXL
dom/media/test/test_bug1113600.html
--- a/dom/media/test/test_bug1113600.html
+++ b/dom/media/test/test_bug1113600.html
@@ -7,16 +7,22 @@
   <script type="text/javascript" src="manifest.js"></script>
 </head>
 <body>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 var manager = new MediaTestManager;
 
 function startTest(test, token) {
+  // The duration of 320x240.ogv is too short for do a proper
+  // mozCaptureStreamUntilEnded. So skip this video.
+  if (test.name == "320x240.ogv") {
+    return;
+  }
+
   var v = document.createElement('video');
   v.style = "background-color:#aca;";
   v.width = 160;
   v.height = 120;
 
   manager.started(token);
 
   v.src = test.name;