Files
openlayers/test
Tim Schaub d9ab545985 Stop ignoring global leaks
The `goog.dom.ViewportSizeMonitor` (used in map.js) creates a global leak by setting `goog.UID_PROPERTY_` on the monitored window.  In order to test that we don't have other global leaks, we preemptively set the property so Mocha can compare the global before and after our tests.
2013-03-23 05:50:54 -06:00
..
2013-03-23 05:50:54 -06:00
2013-03-13 04:55:30 +01:00
2013-01-31 10:18:21 +01:00

Included in this directory

Run the test suite with PhantomJS

With PhantomJS installed, and assuming phantomjs is in the PATH:

$ phantomjs mocha-phantom.coffee ol.html

(Works with PhantomJS 1.6.1, untested with other versions.)

This command can also be run by doing ./build.py test at the root of ol3.

Make sure that the polvr web server is running (./build.py serve), otherwise you will most likely see something like 0 specs, 0 failures in 0.001s..

Tip for TDD'ers: to make PhantomJS run the test suite continuously each time a spec file is changed you can use nosier (http://pypi.python.org/pypi/nosier) and do nosier -p test -p src "./build.py test".