Commit Graph

17 Commits

Author SHA1 Message Date
Mark Salsbery
1a005573f5 Unit tests for canvas drag, release, click events 2013-08-29 13:01:07 -07:00
Luke Murray
ab82783cf1 update the comments and unit test 2013-08-13 10:33:12 +10:00
Luke Murray
0c662b8a8d fix: comment updates and add a simple test for viewer.destroy 2013-08-12 16:38:37 +10:00
Chris Adams
7131c7a7da Tests: check for AJAX error log message 2013-07-02 15:19:55 -04:00
Chris Adams
d782da411e Tests: code cleanup 2013-07-02 13:56:55 -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
c850121e9b Tests: avoid leaking into global scope
This means that this will pass without error:

http://127.0.0.1:8000/test/test.html?noglobals=true
2013-06-26 16:54:37 -04:00
Ian Gilman
8e88f36098 Merge branch 'master' into raf
Fixed Conflicts:
	src/viewer.js
2013-06-19 11:19:54 -07: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
Ian Gilman
9a28793e64 Testing source and timer management in basic test 2013-06-18 11:08:33 -07:00
Ian Gilman
862b560cb4 Basic test no longer uses navigator since we have a suite for that 2013-06-18 11:08:16 -07:00
Ian Gilman
160da513cc Merge branch 'fullpage-class' of github.com:bgilbert/openseadragon into bgilbert-fullpage-class
Fixed Conflicts:
	test/test.html
2013-05-14 09:08:04 -07:00
Benjamin Gilbert
fd04647b1b Test addition/removal of fullpage class on viewer element 2013-05-13 22:35:27 -04:00
Ian Gilman
ed87ceb23f Sped up animation for basic test 2013-05-13 10:57:16 -07:00
Ian Gilman
4f13328609 Minor cleanups on basic test 2013-05-09 11:02:51 -07:00
Ian Gilman
b1758040a0 Added "home" and "click" tests 2013-03-21 13:44:22 -07:00
Ian Gilman
7f98c3cfa7 Renamed test js file so we can have more than one 2013-03-07 11:53:46 -08:00