Skip to content

Commit

Permalink
eliminate non-functional loadPage cli flag
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Aug 30, 2016
1 parent ee92529 commit 990a3c7
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions lighthouse-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const cli = yargs

.group([
'mobile',
'load-page',
'save-assets',
'save-artifacts',
'list-all-audits',
Expand All @@ -56,7 +55,6 @@ const cli = yargs
], 'Configuration:')
.describe({
'mobile': 'Emulates a Nexus 5X',
'load-page': 'Loads the page',
'save-assets': 'Save the trace contents & screenshots to disk',
'save-artifacts': 'Save all gathered artifacts to disk',
'list-all-audits': 'Prints a list of all available audits and exits',
Expand Down Expand Up @@ -89,7 +87,6 @@ Example: --output-path=./lighthouse-results.html`

// default values
.default('mobile', true)
.default('load-page', true)
.default('output', Printer.OUTPUT_MODE.pretty)
.default('output-path', 'stdout')
.check(argv => {
Expand Down
4 changes: 0 additions & 4 deletions lighthouse-core/gather/gather-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ class GatherRunner {
options.flags.mobile = true;
}

if (typeof options.flags.loadPage === 'undefined') {
options.flags.loadPage = true;
}

passes = this.instantiateGatherers(passes, options.config.configDir);

return driver.connect()
Expand Down
4 changes: 0 additions & 4 deletions lighthouse-core/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ class Runner {
opts.flags.mobile = true;
}

if (typeof opts.flags.loadPage === 'undefined') {
opts.flags.loadPage = true;
}

const config = opts.config;

// save the initialUrl provided by the user
Expand Down
4 changes: 1 addition & 3 deletions lighthouse-core/test/gather/gather-runner-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ describe('GatherRunner', function() {
};

return GatherRunner.loadPage(driver, {
flags: {
loadPage: true
},
flags: {},
config: {}
}).then(res => {
assert.equal(res, true);
Expand Down
3 changes: 1 addition & 2 deletions lighthouse-extension/app/src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ document.addEventListener('DOMContentLoaded', _ => {
.then(selectedAudits => {
return background.runLighthouse({
flags: {
mobile: true,
loadPage: true
mobile: true
}
}, selectedAudits);
})
Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ Logging:

Configuration:
--mobile Emulates a Nexus 5X [default: true]
--load-page Loads the page [default: true]
--save-assets Save the trace contents & screenshots to disk [boolean]
--save-artifacts Save all gathered artifacts to disk [boolean]
--list-all-audits Prints a list of all available audits and exits [boolean]
Expand Down

0 comments on commit 990a3c7

Please sign in to comment.