Commit Graph

8 Commits

Author SHA1 Message Date
Chris Adams
59a254bea6 Tests: add open failure tests, overhaul test framework
* Add tests for open failures
* Refactor tests to avoid tests depending on implied status from
  previous tests:
  1. The viewer is now created and destroyed for each
     test to avoid pollution and simplify error handling: nothing
     starts until you request it.
  2. Some tests like Basic: Homepage depended on the Zoom & Pan tests;
     now this is handled explicitly as part of the test setup
  3. All basic tests are now properly async tests (since they needed
     the viewer to load, they really were in the past except that
     they were relying on the viewer state left behind from previous
     tests)
* All tests now run inside the qunit-fixture to prevent masking
  failures. Util.resetDom() has been refactored to use the
  qunit-fixture and the teardown logic only used in the navigator
  tests has been moved into the navigator test teardown method
* Fixed undeclared mainViewerElement variable in optional path in
  the navigator tests
* JSHint cleanup
2013-07-01 18:26:44 -04:00
Chris Adams
9f6f164d9f Remove all whitespace
The results of running this command::

    find . -name \*.js -print0 | xargs -0 perl -p -i -e "s|[ \t]+$||"

(Split from #136)
2013-06-19 13:33:27 -04:00
houseofyin
bb4a8a0b4f Bringing back in sync with the latest baseline 2013-05-17 22:29:08 -04:00
Benjamin Gilbert
f235d7a642 Rename test/util.js to test/test.js
since we are about to create a module for testing utility functions.
2013-05-13 21:54:41 -04:00
Ian Gilman
7f98c3cfa7 Renamed test js file so we can have more than one 2013-03-07 11:53:46 -08:00
Ian Gilman
025d6cdcd3 Added more tests 2013-03-07 11:52:01 -08:00
Ian Gilman
9401b5d393 First version of real tests 2013-03-07 10:44:08 -08:00
Ian Gilman
607a4af860 First version of test files 2013-02-14 10:21:07 -08:00