35 Commits

Author SHA1 Message Date
markpet49
76bcbce9f3 Adjust test for rounding differences. 2022-04-14 14:10:27 -05:00
markpet49
d814cf50a1 Fix for tile resolution, switch to VSCode. 2022-04-12 12:04:17 -05:00
Mark Peterson
07db0fcc0a
License update (#830) 2020-08-12 17:28:51 -05:00
David Collins
6bf7ad3cf8
Update WebWorldWind build dependencies (#804)
Updated the WebWorldWind npm project's build dependencies to ensure compatibility with the latest version of Node.js, Grunt, Karma, and Jasmine.

While changes like this are always worthwhile, I'm making it now to ensure that the original WebWorldWind source and its accompanying npm project will continue to operate for as long as possible after the [WorldWind project's suspension on April 5, 2019](https://worldwind.arc.nasa.gov/news/2019-03-08-suspension-notice).  Secondary goals are eliminating all npm audit warnings from old versions of libraries used to build WebWorldWind (i.e. the devDependencies) and ensuring that unit tests continue to operate.

Summary of changes:

- WebWorldWind now builds with Node.js 10.15.3 LTS and 11.12.0. The README file and the Travis CI configuration file reflect that.

- All npm devDependencies, used for building the WorldWind project, are updated to the latest version available as of this pull request.

- All npm security audit vulnerabilities are addressed.

- Subtle errors in unit tests fixed. WorldWind's geometric unit tests erroneously modified global variables, such as Location.ZERO. These values shouldn't be encoded as global variables, but solving that is out of scope here. Previous versions of Jasmine concealed this problem but these unit tests fail with Jasmine 3.x, likely due to a change in the Jasmine interpreter lifecycle between tests.
2019-03-26 12:01:56 -07:00
Patrick Hogan
09c81f862e Update 2018-06-21 19:03:59 -07:00
Patrick Hogan
44a32a6501 Update 2018-06-21 18:45:33 -07:00
David Collins
c005bc998f
Enhanced geographic to Cartesian arithmetic precision (#714)
* Unit tests for map projection arithmetic
- Unit tests for Globe's ellipsoidal properties and methods against official WGS84 reference values
- In-progress unit tests for ProjectionWGS84's geographic-to-cartesian arithmetic

* Unit tests for map projection arithmetic
- Unit tests for Globe's ellipsoidal properties and methods
- Unit tests for ProjectionWGS84's geographic-to-Cartesian transformations
- Employed official WGS84 reference values for all unit tests

* Unit tests for map projection arithmetic
- Unit tests for Globe's ellipsoidal properties and methods
- Unit tests for ProjectionWGS84's geographic-to-Cartesian transformations
- Employed official WGS84 reference values for all unit tests

* Enhanced geographic to Cartesian arithmetic precision

* Disabled unit tests validating incorrect results
- Several unit tests validated functions based on earlier output from the function itself.
- These functions computed incorrect results, and once repaired the erroneous unit tests failed.
- I've opted to disable these unit tests until an independent validation method can be established.
- In the meantime, I have added unit tests for the problematic low-level functions that are validated against independent results.

* Simplified WorldWind module import for new unit tests

* Clarified property docs for Globe.polarRadius and eccentricitySquared
2018-05-24 15:20:59 -07:00
Zach Glueckert
54900f8bb7 Add TileMatrix/TileMatrixSet (#693)
* Add a generic TileMatrix and TileMatrixSet structure

* Add comments and errors

* Add logging messages, refactor functions, synchronize naming with WWA

* Add unit tests and correct errors
2018-05-17 14:04:46 -07:00
Mark Peterson
20973fe978 Initial elevation coverage composition (#580)
The first iteration of changes required to move toward fulfilling the requirements of issue #422.
2018-04-05 14:35:44 -07:00
David Collins
9e89c14dee Modified BoundingBox.setToSector to handle large sectors (#548)
* Modified BoundingBox.setToSector to handle large sectors
- Sectors with a longitude span greater than 180 degrees are correctly represented
- Closes #545

* Repaired BoundingBox unit test
2018-03-15 15:50:43 -07:00
David Collins
ff17cc166c
Repaired unit tests erroneously modifying Vec3.ZERO (#547) 2018-03-15 15:31:21 -07:00
Mark Peterson
59c04fb1b5 Refactor NavigatorState (#444)
* Work in progress

* Further controller refactoring

* Bug fixes

* Added docs and removed test code

* Removed commented out code

* Revert WebStorm config changes

* Formatting tweaks

* Doc fixes

* Navigator state phase 1

* unProject refactor and unit tests

* Fix for incorrect matrix

* Moved convertToViewport

* Moved further NavigatorState methods, added unit tests

* Remove experimental change

* Various property migrations

* Final property moves

* Bug fixes

* Unit test update

* Unit test corrections

* Unit test cleanup

* Unit test fixes

* Unit test fixes

* Formatting fixes

* Documentation tweaks

* Move calls that require access to wwd.drawContext

* Remove wwd.drawContext dependencies

* Remove drawContext dependencies

* Fixes for classes saving direct references to drawcontext properties.

* Formatting fixes

* WIP

* Fix for 2D panning issue

* Removed commented out code
2018-01-16 10:37:35 -08:00
Patrick Hogan
6ebc542db8 Updated. 2017-11-20 14:06:30 -08:00
Mark Peterson
dabcdd1f06 Improve SurfaceShape deep picking performance (#259)
* Frustum culling incorporated into SurfaceShape

* Deep Picking stress test example

* Unit tests for new functionality in Sector and BoundingBox
2017-10-27 11:51:15 -07:00
GabrielePrestifilippo
ababb4bec8 Fixed geometry tests.
Typo corrected, fault copy pasted tests, simplified expressions
2017-03-15 15:03:54 +01:00
GabrielePrestifilippo
612679eec4 Basic tests for Locatio, Position and Sector classes 2017-02-05 19:03:56 +01:00
GabrielePrestifilippo
c4eeeffed5 Basic tests for Plane class 2017-02-01 00:07:38 +01:00
GabrielePrestifilippo
130e0bd12d Basic tests for Matrix3 class 2017-02-01 00:07:28 +01:00
GabrielePrestifilippo
5e44e99dc5 Basic tests for Matrix class 2017-02-01 00:07:14 +01:00
GabrielePrestifilippo
595940a5e9 Basic tests for Location class 2017-02-01 00:07:04 +01:00
GabrielePrestifilippo
d4e5bd9e21 Basic test for Line class 2017-02-01 00:06:50 +01:00
GabrielePrestifilippo
a68828fae5 Vec3 tests improved with describe for multiple tests on same classe 2017-02-01 00:06:34 +01:00
GabrielePrestifilippo
6edc020876 Frustum basic tests 2017-02-01 00:06:06 +01:00
GabrielePrestifilippo
4bd0c8beba BoundingBox basic tests 2017-02-01 00:05:52 +01:00
GabrielePrestifilippo
f8fb85d58c Tests for all the frustum methods 2017-01-19 23:38:24 +01:00
GabrielePrestifilippo
446b410355 Refactor tests with better structure following the Arrange-Act-Assert principle 2017-01-16 22:28:44 +01:00
GabrielePrestifilippo
65e1000b63 Testing BoundingBox document methods 2017-01-03 18:00:00 +01:00
GabrielePrestifilippo
2a09c54541 basic tests for all the methods of the Angle class 2017-01-01 19:45:40 +01:00
GabrielePrestifilippo
8bf71dccc3 basic test for the Vec2 Class, all the methods are tested 2016-12-26 11:53:45 +01:00
GabrielePrestifilippo
1c864e3cd1 Homogeneous syntax for all Vec3 instances 2016-12-26 11:13:47 +01:00
GabrielePrestifilippo
47f6a24f76 Completed basic test on Vec3 Class for all the methods 2016-12-26 10:56:34 +01:00
GabrielePrestifilippo
353f9609be New preliminary test on Vec3 2016-12-20 11:47:44 +01:00
GabrielePrestifilippo
5e5205e620 new Vec3 test 2016-12-13 18:55:54 +01:00
GabrielePrestifilippo
e01da9c730 Created first tests on Vec3 2016-12-12 15:54:54 +01:00
yvoumard
8e165f970d Add missing tests that weren't ported yet and mark some to be ported 2016-07-21 13:14:23 +02:00