Bug 969372: part3: fix the testcase. r=roc

This commit is contained in:
Benjamin Chen 2014-06-19 10:14:37 +08:00
parent ad1b14886e
commit 7b9b52ae34

View File

@ -10,8 +10,6 @@
<pre id="test">
<script class="testbody" type="text/javascript">
var manager = new MediaTestManager;
// Need to clarify why declare mediaRecorder in startTest cause timeout.;
var mediaRecorder;
/**
* Starts a test on every media recorder file included to check that a
@ -28,7 +26,7 @@ function startTest(test, token) {
element.test = test;
element.stream = element.mozCaptureStreamUntilEnded();
mediaRecorder = new MediaRecorder(element.stream);
var mediaRecorder = new MediaRecorder(element.stream);
var onStopFired = false;
var onDataAvailableFired = false;