Bug 1133625: Fix mochitest so it doesn't append data forever. r=cajbir
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 20 Feb 2015 14:19:14 +1300
changeset 257078 af39fc4994cc2c06cce3f11d582b17cd3195cfbb
parent 257077 661dcf41cef9a2acbb6b4b2dc4af627c750a4b56
child 257079 74014ad8e1f8301cff489b9a6561f1deb39059ee
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscajbir
bugs1133625
milestone38.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 1133625: Fix mochitest so it doesn't append data forever. r=cajbir
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");