1. Eric Radman
  2. phantom-assert

Source

phantom-assert /

Filename Size Date modified Message
120 B
Added tag phantom-assert-1.1 for changeset 127b9c135f52
2.0 KB
Integrate deepEq from klud.js and rename eq() to assert()
219 B
Assert that versions are consistent in source and documentation
340 B
Assert that versions are consistent in source and documentation
952 B
Neaten up hyperlink references and adjust title
989 B
Print the body of anonymous functions and wait for tests with timers
2.2 KB
Add comments to clarify test runner operation
202 B
Add comments to clarify test runner operation
715 B
Add comments to clarify test runner operation

Assertions in PhantomJS

A standalone JavaScript test runner that gives you full access to the browser DOM using PhantomJS. Each test is run with a fresh fixture, eliminating the need to do cleanup between tests. phantom-assert is light enough to be bundled with web applications.

Installation

cp {assert,runner,tests}.js test_page.html $YOUR_PROJECT/

Write tests by customizing tests.js and test_page.html. Execute using

phantomjs runner.js

News

A release history as well as features in the upcoming release are covered in the NEWS file.

License

Source is under and ISC-style license. See the LICENSE file for more detailed information on the license used for compatibility libraries.