Commit Graph

29 Commits

Author SHA1 Message Date
Mark Salsbery
601f533fcf Navigator update with tests update
Navigator hosted in viewer with navigatorMaintainSizeRatio==false (the
default) now maintains its area and aspect ratio.

Tests added for most (all?) navigator configurations.
2014-01-18 18:19:22 -08:00
Mark Salsbery
d874bb63ac Navigator Tests Update
Tests added for all navigator placements.

Work in progress: Adding tests for viewer resizing.
2014-01-16 12:11:35 -08:00
Mark Salsbery
d574700b3d Event Handler Signatures Changed to 'fn(event)'
All event handler signatures changed to 'fn(event)'
eventSource property added to the event object passed
Redundant event source properties removed ('button' and 'viewer'
Documentation updated in MouseTracker
changelog.txt updated
2013-10-10 17:00:15 -07: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
Ian Gilman
b38e319f2c Testing closing one image and opening another in navigator suite 2013-06-18 11:09:05 -07:00
houseofyin
1833f85232 Implemented fix for a test failure that shows up on Firefox in some situtions 2013-06-12 15:06:17 -04:00
houseofyin
867e6de85a Fixed a test that would fail if not scrolled to the top. Improved test speed. Changed some variables to better echo corresponding variables in the application code 2013-06-07 10:25:26 -04:00
houseofyin
aca25d1979 Speeding up the tets 2013-06-01 16:08:23 -04:00
houseofyin
bbf0fc4302 Updated to address feedbac from @iangilman 2013-04-04 22:30:59 -04:00
houseofyin
df3344f67c Getting into alignment with code style guidelines 2013-04-03 11:51:24 -04:00
houseofyin
b3d358fa35 First pass at bringing the code in compliance with the project code standards 2013-04-02 21:07:10 -04:00
houseofyin
d34a912a13 Added autohide tests 2013-04-02 16:40:52 -04:00
houseofyin
50a9cecd35 Refactored to replace parallel arrays with an object 2013-04-02 14:09:49 -04:00
houseofyin
6b97ab4424 Refactored to remove duplicated code 2013-04-02 13:49:15 -04:00
houseofyin
858487f8c6 Tests now go to all corners 2013-04-02 10:44:42 -04:00
houseofyin
f3d880df4c Fixed a few minor errors in the test code 2013-04-01 23:30:05 -04:00
houseofyin
5bf4b51925 Checkpoint. Anchoring click to middle of view. Adding call to apply to constraints on viewer after the click, and additional testing 2013-04-01 22:33:58 -04:00
houseofyin
b1809d4c49 Checkpoint. Some more cleanup and simplification. Starting to convert nav click to pixel-based. Starting to get props to target that 2013-03-31 11:10:31 -04:00
houseofyin
591b5b380d Checkpoint. Some more cleanup and simplification 2013-03-31 11:00:45 -04:00
houseofyin
19225b77f6 Checkpoint. Some more cleanup and simplification 2013-03-31 10:53:33 -04:00
houseofyin
05cad2046f Checkpoint. Some more cleanup and simplification 2013-03-31 10:42:35 -04:00
houseofyin
1e8acf5466 Checkpoint. Some more cleanup. Adjusted to work under PhantomJS 2013-03-30 23:27:33 -04:00
houseofyin
6d73456c66 Checkpoint. Simplified the viewer wait some more 2013-03-30 22:15:02 -04:00
houseofyin
6a4a53acb6 Checkpoint. Converted to pixel-based assessment, First crack at triggering events on the navigator. 2013-03-30 21:53:22 -04:00
houseofyin
20f27080bb Another test checkpoint 2013-03-25 12:18:55 -04:00
houseofyin
977ce2d959 Making a snapshot before removing the SD coordinate based assertions in favor of the pixel-based assertions 2013-03-25 11:01:31 -04:00
houseofyin
8db1a15282 A little cleanup of the border issue 2013-03-23 23:06:34 -04:00
houseofyin
81fd8114f6 Added tall and wide test cases, improved synchronization and test refactoring 2013-03-23 21:06:38 -04:00
houseofyin
67210da278 Snapshot of navigators tests in development 2013-03-21 13:55:36 -04:00