63 Commits

Author SHA1 Message Date
Patrick Hogan
6ebc542db8 Updated. 2017-11-20 14:06:30 -08:00
David Collins
523a0d14c6 Removed obsolete Subversion @version keywords from all files 2017-11-17 13:33:59 -08:00
David Collins
6a6593e732 Cleanup for the upcoming release
- Moved HowToBuildWebWW.md to a new Building section in README.md

- Moved HowToCreateAndRunUnitTests.md to test/README.md

- Ordered npm build scripts to group testing commands

- Moved and renamed JSDoc configuration files to clarify their purpose

- Removed design-notes with the expecation of re-establishing developer focused documentation on the website or wiki.

- Closes #258
2017-11-08 10:25:23 -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
Yann Voumard
d2568fa186 Add support for common Well-Known Text shapes (#116)
* WKT, first commit

* V 0.1 of WKT implementation.

* Initial support for Point.

* Initial support for multi shapes.

* Version 0.2 supporting MultiPolygon, MultiLineString and such.

* Version 0.3 of WKT supporting different text formats as well as the 3D component

* Initial support for inner and outer boundaries in single polygons.

* Version 0.3.1 WKT
- Explanation of current implementation
- WKTTokens returns Numbers as a Number type
- Tests for Point

* WKT Version 0.3.2
- Add tests for MultiPoint.

* Version 0.4 of WKT support
- Updated API to look like GeoJSON and Shapefile
- Cleansed the Parser
- Added documentation

* Version 0.4.1 of WKT
- Updated shape configuration callback.
- Updated documentation.

* Version 0.4.2
- Updated tests for Point and MultiPoint
- Minor bug fixes in parsing.

* Version 0.4.3
- Update Example
- Update shape production inside of the WKT objects.

* Version 0.4.4
- Update display of Point and MultiPoint as placemarks.

* Version 0.4.5
- Added tests for Polygon parsing.

* Version 0.4.6
- Added tests for Line String parsing.

* Version 0.4.7
- Added tests for Triangle parsing.
- Updated documentation for the format.

* Version 0.4.8
- Added tests for MultiLineString parsing.

* Version 0.4.8
- Added tests for MultiPolygon parsing.

* Version 0.5
- Move token handling to the objects.
- Retain only tokens parsing in the WKTTokens.

* Version 0.5.1
- Working EMPTY
- Full support for GeometryCollection

* Version 0.5.2
- Update documentation

* Version 0.6
- Support for inner and outer boundaries in the case of MultiPolygon.
- Load whole WKT on load of framework.
- Add Tests for Polygon with inner boundaries.

* Version 0.6.1
- Updated documentation

* Version 0.6.2
- Updated documentation

* Version 0.6.3
- Fix documentation not generated in jsdoc.

* Version 0.6.4
- Fix documentation not generated in jsdoc for exported object instead of class.

* Version 0.7
- Update the placemark attributes to correctly display the Point and MultiPoint.

* Version 0.7.1
- Update documentation

* Version 0.7.2
- Fix sonar issues.

* Fix tests broken due to different internal handling of the boundaries.

* Change the name of WKT from uppercase to camel case.

* Change the name of WKT from uppercase to camel case.
Simplify the Example to show one set of geometries and the usage of the callbacks

* Fix the issue #208

* Provide the default implementation and documentation for Shape configuration callback and parser completion callback.

* Add the name to the second callback function.

* Update the Well Known Text interface to comply to the Shapefile one.

* The properties should be added to this instance and not this ancestor.

* Update indentation

* Expose all the WktElements.
2017-09-28 10:16:56 +02:00
Miguel Del Castillo
123415de3e Feature/build suggestions (#153)
* Extend package.json with additional metadata
Add command scripts in package.json
Update the dev dependencies
Update GruntSetup.txt, which should be moved to README.md eventually

* Remove unused third party libraries

* Remove build.js use ‘npm run build’ or ‘grunt’ instead

* Start cleaning the root folder (test-main.js)

* Updated markdown build guide to reflect the new streamlined build process

 - Added package-lock.json file generated by npm. It is suggested to
   commit it into the repository.
   See: https://docs.npmjs.com/files/package-lock.json

 - Removed build.js from Gruntfile.js. It's unnecessary now thanks to the
   new build process.

 - package.json had spaces in "type" and "url" declarations that
   were automatically removed in build process.

 - Added .idea/ folder to .gitignore. Consider removing the folder from
   the repository altogether.

* Removed zip file compress task from build process.

* Removed grunt-contrib-compress node module from package.json

 - The module is an unused dependency now, since we're not going to
   backup the whole codebase + artifacts in a zip file anymore.

* Removed .idea/ folder mistakenly added to .gitignore.

 - Only files that are unrelated to run configurations are added to
   gitignore.

* Further corrections to .gitignore. Removed WebWorldWind.zip reference.

* Further corrections to .gitignore. Removed WebWorldWind.zip reference.

* .gitignore cleanup. .iml file correction.
2017-06-30 10:53:30 -07:00
Yann Voumard
2795972543 Merge pull request #115 from NASAWorldWind/feature/string-polyfill
Harmonise use of starsWith and endsWith
2017-05-16 13:34:16 +02:00
David Collins
3566f8c4f7 Merge pull request #86 from NASAWorldWind/feature/starfield
Add starfield layer
2017-05-15 16:25:23 -07:00
strikerM
00765a124b fullSphereSector surfaceShapes cover the whole globe
added test
2017-05-11 10:22:50 +03:00
strikerM
8610e4cfe2 added test for WWMath.normalizeAngle360 2017-05-02 11:21:32 +03:00
strikerM
a6516904e1 added normalizeAngle360, from WWAndroid, to WWMath
removed normalizeAngle from SunPosition
replaced if_gt function with the build in glsl step function
2017-04-26 13:13:43 +03:00
Jakub Balhar
5ebbc6134d Added polyfills for EndsWith and StartsWith based on the polyfills by Mozilla foundation with tests.
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
2017-04-10 15:18:40 +02:00
AkeluX
7651d90e82 Merge branch 'bug/fix-kml-file-test' into develop 2017-04-07 17:10:01 +02:00
AkeluX
2b131d0d49 Deleted unused test file 2017-04-07 17:08:10 +02:00
strikerM
9504d6d840 refactored CelestialProjection to SunPosition 2017-04-05 12:55:48 +03:00
Jakub Balhar
5d6ed3f4a5 Fix test for KmlFile to load tested KML File.
Karma is also loading the KML Sample.
2017-04-04 15:23:11 +02:00
Gabriele Prestifilippo
d1066acbde Merge branch 'develop' into unit_test 2017-03-28 18:15:50 +02:00
strikerM
3717966a1c added tests for CelestialProjection 2017-03-28 12:12:58 +03: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
strikerM
121bfdca4f refactored polygon splitter code
added a HashMap class
added tests
2016-12-19 12:04:10 +02: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
Jakub Balhar
948e50e49a Remove this test as in different browsers the behavior differs. Phantomjs behavior is different to Firefox, Chrome and IE. 2016-09-20 16:42:09 +02:00
Jakub Balhar
9c45d2d76e Finished fixing tests. 2016-08-04 10:33:59 +02:00
Jakub Balhar
4edad1a5c1 Added some more tests. 2016-08-03 13:59:37 +02:00
AkeluX
7d9139a440 Adapt some tests for the latest changes in the KML implementation 2016-07-27 16:27:34 +02: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
yvoumard
30b8fd3f22 Merge branch 'master' into karma-test
Conflicts in Tests:
	test/formats/kml/KmlFile.test.js
	test/formats/kml/KmlObject.test.js
	test/formats/kml/styles/KmlBalloonStyle.test.js

New Tests that break:
	test/formats/kml/util/Attribute.test.js
	test/formats/kml/util/KmlElementsFactory.test.js
	test/formats/kml/util/KmlElementsFactoryCached.test.js
	test/formats/kml/util/NodeTransformers.test.js
	test/formats/kml/util/Style.test.js
	test/formats/kml/util/Styles.test.js
	test/formats/kml/util/TreeKeyValueCache.test.js
2016-07-21 12:27:01 +02:00
carla-orru
034f188de4 Deleted old tests and updated the file 'HowToCreateAndRunUnitTests.txt' 2016-07-19 14:01:59 +02:00
carla-orru
5c9c905003 Converted tests from the jsTestDriver format to the Jasmine format 2016-05-26 16:52:31 +02:00
carla-orru
96b75eed8f Converted tests from the jsTestDriver format to the Jasmine format 2016-05-26 15:53:35 +02:00
Jakub Balhar
ec9dc97e0b Working implementation again.
Main issue remains speed.
2016-03-29 15:28:03 +02:00
Jakub Balhar
3bea4e8a93 Styles. 2016-03-14 17:53:42 +01:00