Chromium Code Reviews| Index: content/test/data/media/mediarecorder_test.html |
| diff --git a/content/test/data/media/mediarecorder_test.html b/content/test/data/media/mediarecorder_test.html |
| index c5d4cc13dbf88845e3a8c6a98f8f0953b484e7da..70ebcaa8953935750533b6349b75fb18c8659007 100644 |
| --- a/content/test/data/media/mediarecorder_test.html |
| +++ b/content/test/data/media/mediarecorder_test.html |
| @@ -13,7 +13,7 @@ |
| 'use strict'; |
| -const DEFAULT_CONSTRAINTS= {audio:true, video:true}; |
| +const DEFAULT_CONSTRAINTS = {audio: true, video: true}; |
| const DEFAULT_RECORDER_MIME_TYPE = ''; |
| const DEFAULT_TIME_SLICE = 100; |
| const FREQUENCY = 880; |
| @@ -138,7 +138,7 @@ function testStartAndDataAvailable() { |
| recorder.ondataavailable = function(event) { |
| timeStamps.push(event.timeStamp); |
| if (event.data.size > 0) |
| - videoSize += event.data.size; |
| + videoSize += event.data.size; |
| else |
| emptyBlobs += 1; |
| }; |
| @@ -176,7 +176,7 @@ function testStartWithTimeSlice() { |
| recorder.ondataavailable = function(event) { |
| timeStamps.push(event.timeStamp); |
| if (event.data.size > 0) |
| - videoSize += event.data.size; |
| + videoSize += event.data.size; |
| else |
| emptyBlobs += 1; |
| }; |
| @@ -217,7 +217,7 @@ function testResumeAndRecorderState() { |
| theRecorder.onresume = function(event) { |
| resumeEventReceived = true; |
| assertEquals('recording', theRecorder.state); |
| - } |
| + }; |
| theRecorder.resume(); |
| }) |
| .then(function() { |
| @@ -267,7 +267,7 @@ function testResumeAndDataAvailable() { |
| .then(function() { |
| theRecorder.ondataavailable = function(event) { |
| if (event.data.size > 0) { |
| - videoSize += event.data.size; |
| + videoSize += event.data.size; |
| } else { |
| console.log('This dataavailable event is empty', event); |
| emptyBlobs += 1; |
| @@ -310,7 +310,7 @@ function testPauseAndRecorderState() { |
| theRecorder.onpause = function(event) { |
| pauseEventReceived = true; |
| assertEquals('paused', theRecorder.state); |
| - } |
| + }; |
| theRecorder.pause(); |
| }) |
| .then(function() { |
| @@ -358,7 +358,6 @@ function testPauseStopAndRecorderState() { |
| function testPausePreventsDataavailableFromBeingFired() { |
| var theRecorder; |
| var videoSize = 0; |
|
mcasas
2016/01/07 23:04:11
Unused as well, as I wrote in the bug.
cpaulin (no longer in chrome)
2016/01/07 23:14:06
That one got away.
|
| - var emptyBlobs = 0; |
| navigator.mediaDevices.getUserMedia(DEFAULT_CONSTRAINTS) |
| .then(function(stream) { |
| return createAndStartMediaRecorder(stream, DEFAULT_RECORDER_MIME_TYPE); |
| @@ -441,7 +440,7 @@ function testTwoChannelAudio() { |
| var audioSize = 0; |
| var context = new OfflineAudioContext(2, NUM_SAMPLES, SAMPLING_RATE); |
| var oscillator = context.createOscillator(); |
| - oscillator.type = "sine"; |
| + oscillator.type = 'sine'; |
| oscillator.frequency.value = FREQUENCY; |
| var dest = context.createMediaStreamDestination(); |
| dest.channelCount = 2; |