Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: content/test/data/media/mediarecorder_test.html

Issue 1565343002: MediaRecorder: content browsertests fix a few lint warnings in mediarecorder_test.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698