Bug 1133625: Fix mochitest so it doesn't append data forever. r=cajbir a=testonly
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 20 Feb 2015 14:19:14 +1300
changeset 240864 77ec05774a77df5ecbd7a70a7a8bf354f626f2e9
parent 240863 050e1d7b5246886dd76187172f083a8d06e17459
child 240865 419b32569a768f37ca35d1e18bac9a0ef36b515a
push id7674
push userrgiles@mozilla.com
push dateMon, 23 Feb 2015 08:08:48 +0000
treeherdermozilla-aurora@419b32569a76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscajbir, testonly
bugs1133625
milestone37.0a2
Bug 1133625: Fix mochitest so it doesn't append data forever. r=cajbir a=testonly
dom/media/mediasource/test/test_SeekableBeforeEndOfStreamSplit.html
--- a/dom/media/mediasource/test/test_SeekableBeforeEndOfStreamSplit.html
+++ b/dom/media/mediasource/test/test_SeekableBeforeEndOfStreamSplit.html
@@ -14,16 +14,17 @@ SimpleTest.waitForExplicitFinish();
 
 runWithMSE(function (ms, v) {
   ms.addEventListener("sourceopen", function () {
     var sb = ms.addSourceBuffer("video/webm");
 
     fetchWithXHR("seek.webm", function (arrayBuffer) {
       sb.appendBuffer(new Uint8Array(arrayBuffer, 0, 25223));
       sb.addEventListener("updateend", function () {
+        sb.removeEventListener('updateend', arguments.callee);
         sb.appendBuffer(new Uint8Array(arrayBuffer, 25223));
       });
     });
 
     var target = 2;
 
     v.addEventListener("loadedmetadata", function () {
       ok(v.seekable.length, "Resource is seekable");