jmreidy/grunt-mocha-webdriver — pull request #53 by saadtazi (2014-05-03 04:02:49+00:00)
Title: added phantomFlags option

I added a way to pass phantomjs command-line options.

Here is the current list... (from `phantomjs -h`):

```
--cookies-file= Sets the file name to store the persistent cookies
--config= Specifies JSON-formatted configuration file
--debug= Prints additional warning and debug message: 'true' or 'false' (default)
--disk-cache= Enables disk cache: 'true' or 'false' (default)
--ignore-ssl-errors= Ignores SSL errors (expired/self-signed certificate errors): 'true' or 'false' (default)
--load-images= Loads all inlined images: 'true' (default) or 'false'
--local-storage-path= Specifies the location for offline local storage
--local-storage-quota= Sets the maximum size of the offline local storage (in KB)
--local-to-remote-url-access= Allows local content to access remote URL: 'true' or 'false' (default)
--max-disk-cache-size= Limits the size of the disk cache (in KB)
--output-encoding= Sets the encoding for the terminal output, default is 'utf8'
--remote-debugger-port= Starts the script in a debug harness and listens on the specified port
--remote-debugger-autorun= Runs the script in the debugger immediately: 'true' or 'false' (default)
--proxy= Sets the proxy server, e.g. '--proxy=http://proxy.company.com:8080'
--proxy-auth= Provides authentication information for the proxy, e.g. ''-proxy-auth=username:password'
--proxy-type= Specifies the proxy type, 'http' (default), 'none' (disable completely), or 'socks5'
--script-encoding= Sets the encoding used for the starting script, default is 'utf8'
--web-security= Enables web security, 'true' (default) or 'false'
--ssl-protocol= Sets the SSL protocol (supported protocols: 'SSLv3' (default), 'SSLv2', 'TLSv1', 'any')
--ssl-certificates-path= Sets the location for custom CA certificates (if none set, uses system default)
--webdriver= Starts in 'Remote WebDriver mode' (embedded GhostDriver): '[[:]]' (default '127.0.0.1:8910')
--webdriver-logfile= File where to write the WebDriver's Log (default 'none') (NOTE: needs '--webdriver')
--webdriver-loglevel= WebDriver Logging Level: (supported: 'ERROR', 'WARN', 'INFO', 'DEBUG') (default 'INFO') (NOTE: needs '--webdriver')
--webdriver-selenium-grid-hub= URL to the Selenium Grid HUB: 'URL_TO_HUB' (default 'none') (NOTE: needs '--webdriver')
```