Commit Graph

13 Commits

Author SHA1 Message Date
Mark Salsbery
1a005573f5 Unit tests for canvas drag, release, click events 2013-08-29 13:01:07 -07:00
Mark Salsbery
6049a7ecef Unit tests for canvas drag, release, click events
Added test for canvas-drag, canvas-release, and canvas-click events
2013-08-28 11:33:41 -07:00
Chris Adams
6d7dd71577 Tests: IE8 support for log capture
No Array.indexOf. We are living like animals!
2013-07-02 16:20:56 -04:00
Chris Adams
9fb4ae2a9a Tests: more targeted log capture setup
@Ventero pointed out that functions also have a length property
2013-07-02 16:09:23 -04:00
Chris Adams
5a300998a8 Tests: console log capture utility 2013-07-02 15:12:16 -04:00
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