Commit 69b35953 69b35953522cdc256326792f038b3ac3b0aefbeb by mickaelandrieu

REFS #6666 - Ensure local options configuration override global configuration of Casper instance

1 parent 1b14a5f9
...@@ -129,7 +129,9 @@ var Casper = function Casper(options) { ...@@ -129,7 +129,9 @@ var Casper = function Casper(options) {
129 // factories 129 // factories
130 this.cli = phantom.casperArgs; 130 this.cli = phantom.casperArgs;
131 this.options.logLevel = this.cli.get('log-level', this.options.logLevel); 131 this.options.logLevel = this.cli.get('log-level', this.options.logLevel);
132 if (this.options.verbose === false) {
132 this.options.verbose = this.cli.has('direct') || this.cli.has('verbose'); 133 this.options.verbose = this.cli.has('direct') || this.cli.has('verbose');
134 }
133 this.colorizer = this.getColorizer(); 135 this.colorizer = this.getColorizer();
134 this.mouse = mouse.create(this); 136 this.mouse = mouse.create(this);
135 this.popups = pagestack.create(); 137 this.popups = pagestack.create();
......