Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
use strict everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed May 10, 2015
1 parent 564deac commit 57f0b50
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
'use strict';

/**
* WebdriverCSS
* Regression testing tool for WebdriverJS
*
*
* @author Christian Bromann <mail@christian-bromann.com>
* @license Licensed under the MIT license.
*/

module.exports = process.env.WEBDRIVERCSS_COVERAGE === '1' ? require('./lib-cov/webdrivercss.js') : require('./lib/webdrivercss.js');
module.exports = process.env.WEBDRIVERCSS_COVERAGE === '1' ? require('./lib-cov/webdrivercss.js') : require('./lib/webdrivercss.js');
2 changes: 2 additions & 0 deletions lib/asyncCallback.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* run workflow again or execute callback function
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/compareImages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* compare images
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/cropImage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* crop image according to user arguments and its position on screen and save it
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/documentScreenshot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
*
* Save a screenshot as a base64 encoded PNG with the current state of the browser.
Expand Down
4 changes: 3 additions & 1 deletion lib/endSession.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var async = require('async'),
merge = require('deepmerge'),
request = require('request');
Expand Down Expand Up @@ -56,7 +58,7 @@ module.exports = function(done) {
that.self.url = undefined;
that.self.sessionId = undefined;
that.self.isNew = undefined;
}
}
return cb();
}

Expand Down
2 changes: 2 additions & 0 deletions lib/exclude.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* exclude parts within page by drawing black rectangle
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/generateUUID.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* @return {string} A V4 UUID.
* @private
Expand Down
2 changes: 2 additions & 0 deletions lib/getPageInfo.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* get page informations
* IMPORTANT: all of this code gets executed on browser side, so you won't have
Expand Down
2 changes: 2 additions & 0 deletions lib/logWarning.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* prints warning message within WebdriverIO instance
* @param {String} id error type
Expand Down
2 changes: 2 additions & 0 deletions lib/makeScreenshot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* make screenshot via [GET] /session/:sessionId/screenshot
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/renameFiles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var glob = require('glob'),
fs = require('fs');

Expand Down
2 changes: 2 additions & 0 deletions lib/saveImageDiff.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var fs = require('fs'),
async = require('async'),
logWarning = require('./logWarning.js');
Expand Down
2 changes: 2 additions & 0 deletions lib/setScreenWidth.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* if multiple screen width are given resize browser dimension
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/startSession.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var pkg = require('../package.json'),
request = require('request'),
async = require('async');
Expand Down
2 changes: 2 additions & 0 deletions lib/viewportScreenshot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* takes screenshot of the current viewport
*
Expand Down
2 changes: 2 additions & 0 deletions lib/webdrivercss.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* WebdriverCSS
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/workflow.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* run regression test
*/
Expand Down

0 comments on commit 57f0b50

Please sign in to comment.