-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
PhantomJS Cookbook
By :
This recipe introduces the jasmine-reporters library, and it explains how to use TerminalReporter for clear and concise output on the command line when using PhantomJS.
To run this recipe, we will need the following items:
jasmine-reporters libraryThe jasmine-reporters library is a collection of advanced reporters for the Jasmine test framework. It is an open source (MIT licensed) project and is available at https://github.com/larrymyers/jasmine-reporters.
The library code that we will use for our tests is available in the downloadable code repository as string-utils.js under lib; the accompanying tests are available as string-utils-spec.js under lib. The test runner is also available in the repository as recipe02-runner.html under chapter04. If we run the provided example, we must change to the root directory for the book's sample...
Change the font size
Change margin width
Change background colour