API Docs for: 0.1.0

Class gabarito.plumbing.PhantomEnvironment

Extends: gabarito.plumbing.ServerEnvironment
Class defined in: lib/plumbing/PhantomEnvironment.js:20

The PhantomEnvironment uses the phantomjs to navigate to "http://localhost:1432" in order to run the tests.

gabarito.plumbing.PhantomEnvironment( [phantom] )
lib/plumbing/PhantomEnvironment.js:20
Parameters:
  • [phantom] <Phantom>

    The phantom module

Index

Methods

dispatch( files, reporters, done )
Defined in gabarito.plumbing.Environment: lib/plumbing/Environment.js:35

Method called by the runner that receives the files to be loaded, the reporters that should receive all events and the callback function that must be called passing all the results at the end of things.

Parameters:
dispatchBrowser( done ) /* protected method */
Defined in gabarito.plumbing.ServerEnvironment: lib/plumbing/ServerEnvironment.js:250

This method must be implemented in order to dispatch the browser to navigate to "http://localhost:1432".

The done function must be called afterwards.

Parameters:
  • done <Function>
ditchBrowser( done ) /* protected method */
Defined in gabarito.plumbing.ServerEnvironment: lib/plumbing/ServerEnvironment.js:64

This method may be implemented in order to clean up any browser reference.

It must call the done function afterwards.

Parameters:
  • done <Function>
String getName( )
Defined in gabarito.plumbing.Environment: lib/plumbing/Environment.js:23

The environment's name


Returns: <String>