зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1215455 - eslint space-before-blocks [r=Standard8]
This commit is contained in:
Родитель
3164ac9d75
Коммит
8984b26370
|
@ -105,6 +105,7 @@
|
|||
"semi": 2,
|
||||
"semi-spacing": [2, {"before": false, "after": true}],
|
||||
"space-after-keywords": 2,
|
||||
"space-before-blocks": 2,
|
||||
"space-before-keywords": 2,
|
||||
"space-infix-ops": 2,
|
||||
"space-return-throw-case": 2,
|
||||
|
|
|
@ -90,7 +90,7 @@ this.CardDavImporter.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!("host" in options)){
|
||||
if (!("host" in options)) {
|
||||
callback(new Error("Missing host for CardDav import"));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -305,7 +305,7 @@ PingMonitor.prototype = {
|
|||
* Function to stop the PingMonitor.
|
||||
*/
|
||||
stop: function() {
|
||||
if (this._pingTimerID){
|
||||
if (this._pingTimerID) {
|
||||
clearTimeout(this._pingTimerID);
|
||||
this._pingTimerID = undefined;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ describe("loop.panel", function() {
|
|||
fakeWindow = {
|
||||
close: sandbox.stub(),
|
||||
addEventListener: function() {},
|
||||
document: { addEventListener: function(){} },
|
||||
document: { addEventListener: function() {} },
|
||||
setTimeout: function(callback) { callback(); }
|
||||
};
|
||||
loop.shared.mixins.setRootObject(fakeWindow);
|
||||
|
|
|
@ -24,7 +24,7 @@ describe("loop.shared.mixins", function() {
|
|||
function createTestComponent(onUrlHashChange) {
|
||||
var TestComp = React.createClass({
|
||||
mixins: [loop.shared.mixins.UrlHashChangeMixin],
|
||||
onUrlHashChange: onUrlHashChange || function(){},
|
||||
onUrlHashChange: onUrlHashChange || function() {},
|
||||
render: function() {
|
||||
return React.DOM.div();
|
||||
}
|
||||
|
|
|
@ -376,7 +376,7 @@ describe("loop.shared.views.TextChatView", function () {
|
|||
|
||||
// note that this is really an integration test to be sure that we don't
|
||||
// inadvertently regress using LinkifiedTextView.
|
||||
it("should linkify a URL starting with http", function (){
|
||||
it("should linkify a URL starting with http", function () {
|
||||
view = mountTestComponent({
|
||||
showTimestamp: true,
|
||||
timestamp: "2015-06-23T22:48:39.738Z",
|
||||
|
|
|
@ -13,8 +13,8 @@ describe("Validator", function() {
|
|||
}
|
||||
|
||||
// test types
|
||||
function X(){}
|
||||
function Y(){}
|
||||
function X() {}
|
||||
function Y() {}
|
||||
|
||||
describe("#validate", function() {
|
||||
function RTCSessionDescription() {}
|
||||
|
|
|
@ -60,7 +60,7 @@ describe("loop.shared.views", function() {
|
|||
React.createElement(sharedViews.MediaControlButton, {
|
||||
scope: "local",
|
||||
type: "audio",
|
||||
action: function(){},
|
||||
action: function() {},
|
||||
enabled: true
|
||||
}));
|
||||
|
||||
|
@ -72,7 +72,7 @@ describe("loop.shared.views", function() {
|
|||
React.createElement(sharedViews.MediaControlButton, {
|
||||
scope: "local",
|
||||
type: "audio",
|
||||
action: function(){},
|
||||
action: function() {},
|
||||
enabled: false
|
||||
}));
|
||||
|
||||
|
@ -84,7 +84,7 @@ describe("loop.shared.views", function() {
|
|||
React.createElement(sharedViews.MediaControlButton, {
|
||||
scope: "local",
|
||||
type: "video",
|
||||
action: function(){},
|
||||
action: function() {},
|
||||
enabled: true
|
||||
}));
|
||||
|
||||
|
@ -96,7 +96,7 @@ describe("loop.shared.views", function() {
|
|||
React.createElement(sharedViews.MediaControlButton, {
|
||||
scope: "local",
|
||||
type: "video",
|
||||
action: function(){},
|
||||
action: function() {},
|
||||
enabled: false
|
||||
}));
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ describe("loop.standaloneRoomViews", function() {
|
|||
fakeWindow = {
|
||||
close: sandbox.stub(),
|
||||
addEventListener: function() {},
|
||||
document: { addEventListener: function(){} },
|
||||
document: { addEventListener: function() {} },
|
||||
removeEventListener: function() {},
|
||||
setTimeout: function(callback) { callback(); }
|
||||
};
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
* @type {Object}
|
||||
*/
|
||||
navigator.mozL10n = document.mozL10n = {
|
||||
initialize: function(){},
|
||||
initialize: function() {},
|
||||
|
||||
getLanguage: function(){},
|
||||
getLanguage: function() {},
|
||||
|
||||
getDirection: function(){
|
||||
getDirection: function() {
|
||||
if (document.location.search === "?rtl=1") {
|
||||
return "rtl";
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ var fakeRooms = [
|
|||
*/
|
||||
navigator.mozLoop = {
|
||||
ensureRegistered: function() {},
|
||||
getAudioBlob: function(){},
|
||||
getAudioBlob: function() {},
|
||||
getLoopPref: function(pref) {
|
||||
switch (pref) {
|
||||
// Ensure we skip FTE completely.
|
||||
|
@ -122,7 +122,7 @@ var fakeRooms = [
|
|||
return null;
|
||||
},
|
||||
hasEncryptionKey: true,
|
||||
setLoopPref: function(){},
|
||||
setLoopPref: function() {},
|
||||
releaseCallData: function() {},
|
||||
copyString: function() {},
|
||||
getUserAvatar: function(emailAddress) {
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
function noop(){}
|
||||
function noop() {}
|
||||
|
||||
// We save the visibility change listeners so that we can fake an event
|
||||
// to the panel once we've loaded all the views.
|
||||
|
@ -392,7 +392,7 @@
|
|||
};
|
||||
|
||||
var mockMozLoopNoRoomsNoContext = _.cloneDeep(navigator.mozLoop);
|
||||
mockMozLoopNoRoomsNoContext.getSelectedTabMetadata = function(){};
|
||||
mockMozLoopNoRoomsNoContext.getSelectedTabMetadata = function() {};
|
||||
mockMozLoopNoRoomsNoContext.rooms.getAll = function(version, callback) {
|
||||
callback(null, []);
|
||||
};
|
||||
|
@ -425,7 +425,7 @@
|
|||
};
|
||||
|
||||
var mockMozLoopLoggedInNoContext = _.cloneDeep(navigator.mozLoop);
|
||||
mockMozLoopLoggedInNoContext.getSelectedTabMetadata = function(){};
|
||||
mockMozLoopLoggedInNoContext.getSelectedTabMetadata = function() {};
|
||||
mockMozLoopLoggedInNoContext.userProfile = _.cloneDeep(mockMozLoopLoggedIn.userProfile);
|
||||
|
||||
var mockMozLoopLoggedInLongEmail = _.cloneDeep(navigator.mozLoop);
|
||||
|
@ -883,7 +883,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
roomState: ROOM_STATES.INIT,
|
||||
roomStore: invitationRoomStore})
|
||||
)
|
||||
|
@ -898,7 +898,7 @@
|
|||
dispatcher: dispatcher,
|
||||
error: {},
|
||||
mozLoop: navigator.mozLoop,
|
||||
onClose: function(){},
|
||||
onClose: function() {},
|
||||
roomData: {},
|
||||
savingContext: false,
|
||||
show: true}
|
||||
|
@ -919,7 +919,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomState: ROOM_STATES.HAS_PARTICIPANTS,
|
||||
roomStore: desktopRoomStoreLoading})
|
||||
|
@ -937,7 +937,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomState: ROOM_STATES.HAS_PARTICIPANTS,
|
||||
roomStore: roomStore})
|
||||
|
@ -955,7 +955,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomState: ROOM_STATES.HAS_PARTICIPANTS,
|
||||
roomStore: desktopRoomStoreMedium})
|
||||
|
@ -973,7 +973,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomState: ROOM_STATES.HAS_PARTICIPANTS,
|
||||
roomStore: desktopRoomStoreLarge})
|
||||
|
@ -990,7 +990,7 @@
|
|||
chatWindowDetached: false,
|
||||
dispatcher: dispatcher,
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomStore: desktopLocalFaceMuteRoomStore})
|
||||
)
|
||||
|
@ -1007,7 +1007,7 @@
|
|||
dispatcher: dispatcher,
|
||||
localPosterUrl: "sample-img/video-screen-local.png",
|
||||
mozLoop: navigator.mozLoop,
|
||||
onCallTerminated: function(){},
|
||||
onCallTerminated: function() {},
|
||||
remotePosterUrl: "sample-img/video-screen-remote.png",
|
||||
roomStore: desktopRemoteFaceMuteRoomStore})
|
||||
)
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
function noop(){}
|
||||
function noop() {}
|
||||
|
||||
// We save the visibility change listeners so that we can fake an event
|
||||
// to the panel once we've loaded all the views.
|
||||
|
@ -392,7 +392,7 @@
|
|||
};
|
||||
|
||||
var mockMozLoopNoRoomsNoContext = _.cloneDeep(navigator.mozLoop);
|
||||
mockMozLoopNoRoomsNoContext.getSelectedTabMetadata = function(){};
|
||||
mockMozLoopNoRoomsNoContext.getSelectedTabMetadata = function() {};
|
||||
mockMozLoopNoRoomsNoContext.rooms.getAll = function(version, callback) {
|
||||
callback(null, []);
|
||||
};
|
||||
|
@ -425,7 +425,7 @@
|
|||
};
|
||||
|
||||
var mockMozLoopLoggedInNoContext = _.cloneDeep(navigator.mozLoop);
|
||||
mockMozLoopLoggedInNoContext.getSelectedTabMetadata = function(){};
|
||||
mockMozLoopLoggedInNoContext.getSelectedTabMetadata = function() {};
|
||||
mockMozLoopLoggedInNoContext.userProfile = _.cloneDeep(mockMozLoopLoggedIn.userProfile);
|
||||
|
||||
var mockMozLoopLoggedInLongEmail = _.cloneDeep(navigator.mozLoop);
|
||||
|
@ -883,7 +883,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
roomState={ROOM_STATES.INIT}
|
||||
roomStore={invitationRoomStore} />
|
||||
</div>
|
||||
|
@ -898,7 +898,7 @@
|
|||
dispatcher={dispatcher}
|
||||
error={{}}
|
||||
mozLoop={navigator.mozLoop}
|
||||
onClose={function(){}}
|
||||
onClose={function() {}}
|
||||
roomData={{}}
|
||||
savingContext={false}
|
||||
show={true}
|
||||
|
@ -919,7 +919,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomState={ROOM_STATES.HAS_PARTICIPANTS}
|
||||
roomStore={desktopRoomStoreLoading} />
|
||||
|
@ -937,7 +937,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomState={ROOM_STATES.HAS_PARTICIPANTS}
|
||||
roomStore={roomStore} />
|
||||
|
@ -955,7 +955,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomState={ROOM_STATES.HAS_PARTICIPANTS}
|
||||
roomStore={desktopRoomStoreMedium} />
|
||||
|
@ -973,7 +973,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomState={ROOM_STATES.HAS_PARTICIPANTS}
|
||||
roomStore={desktopRoomStoreLarge} />
|
||||
|
@ -990,7 +990,7 @@
|
|||
chatWindowDetached={false}
|
||||
dispatcher={dispatcher}
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomStore={desktopLocalFaceMuteRoomStore} />
|
||||
</div>
|
||||
|
@ -1007,7 +1007,7 @@
|
|||
dispatcher={dispatcher}
|
||||
localPosterUrl="sample-img/video-screen-local.png"
|
||||
mozLoop={navigator.mozLoop}
|
||||
onCallTerminated={function(){}}
|
||||
onCallTerminated={function() {}}
|
||||
remotePosterUrl="sample-img/video-screen-remote.png"
|
||||
roomStore={desktopRemoteFaceMuteRoomStore} />
|
||||
</div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче