Small indentation fixes
This commit is contained in:
Родитель
58fbe416bb
Коммит
c7f5efcf31
|
@ -49,7 +49,7 @@ FrontendClient.prototype._sendMessage = function(message) {
|
|||
debugProtocol('backend: ' + payload);
|
||||
|
||||
if (!this._connection) {
|
||||
if(!this._errorMessageDisplayed) {
|
||||
if (!this._errorMessageDisplayed) {
|
||||
console.log('Cannot send response - there is no front-end connection.');
|
||||
this._errorMessageDisplayed = true;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ FrontendCommandHandler.prototype = {
|
|||
},
|
||||
|
||||
_handleFrontendMessage: function(message) {
|
||||
debugProtocol('frontend: '+ message);
|
||||
debugProtocol('frontend: ' + message);
|
||||
var command = JSON.parse(message);
|
||||
this.handleCommand(command);
|
||||
},
|
||||
|
|
|
@ -20,7 +20,7 @@ function escapeRegex(str) {
|
|||
* @constructor
|
||||
*/
|
||||
function ScriptFileStorage(config) {
|
||||
config = config || {}
|
||||
config = config || {};
|
||||
this._isHidden = config.isScriptHidden || function() { return false; };
|
||||
this._noPreload = config.noPreload;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ exports.create = function() {
|
|||
value: function(callbackId, args) {
|
||||
var callback = callbacks[callbackId];
|
||||
|
||||
if(callback) {
|
||||
if (callback) {
|
||||
callback.apply(null, args);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ describe('CallFramesProvider', function() {
|
|||
}
|
||||
|
||||
// The order of script loading has changed in v0.11
|
||||
var scriptId = /^v0\.10\./.test(process.version) ? '28': '32';
|
||||
var scriptId = /^v0\.10\./.test(process.version) ? '28' : '32';
|
||||
|
||||
expect(callFrames).to.have.length.least(2);
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ describe('DebuggerAgent', function() {
|
|||
before(setupDebugScenario);
|
||||
|
||||
it('does not throw an error', function(done) {
|
||||
expect(function () { agent.resume({}, done); })
|
||||
expect(function() { agent.resume({}, done); })
|
||||
.to.not.throw();
|
||||
});
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ describe('ScriptFileStorage', function() {
|
|||
it('excludes files to hide', function(done) {
|
||||
var expectedFiles = givenTempFiles('app.js', 'mod.js').slice(0, 1);
|
||||
var isHiddenScriptFn = function(s) { return /mod.js/i.test(s); };
|
||||
storage = new ScriptFileStorage({isScriptHidden:isHiddenScriptFn});
|
||||
storage = new ScriptFileStorage({isScriptHidden: isHiddenScriptFn});
|
||||
|
||||
storage.findAllApplicationScripts(
|
||||
TEMP_DIR,
|
||||
|
@ -141,7 +141,7 @@ describe('ScriptFileStorage', function() {
|
|||
|
||||
it('disables preloading files', function(done) {
|
||||
givenTempFiles('app.js', 'mod.js');
|
||||
storage = new ScriptFileStorage({noPreload:true});
|
||||
storage = new ScriptFileStorage({noPreload: true});
|
||||
|
||||
storage.findAllApplicationScripts(
|
||||
TEMP_DIR,
|
||||
|
|
|
@ -158,7 +158,7 @@ describe('convert', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('v8ResultToInspectorResult', function(){
|
||||
describe('v8ResultToInspectorResult', function() {
|
||||
it('convert regexp as object', function() {
|
||||
var v8Result = {
|
||||
handle: 0,
|
||||
|
|
Загрузка…
Ссылка в новой задаче