Files
openlayers/tests
tschaub 02aa9bcc36 Tests with a description of the updated method.
The old `containsPoint` method was sensitive to failure when looking for ray crossings with nearly vertical edges.  These added tests demonstrate the simple cases where `containsPoint` succeeds.  The tests also now include a case that covers the failure for polygons with nearly vertical edges.  The previous `getX` method (within the `containsPoint` method) and the new one are mathematically equivalent.  The updated version performs better in cases using coordinates with many significant figures.
2012-01-16 16:59:54 -07:00
..
2007-12-17 02:18:04 +00:00
2008-01-20 15:32:10 +00:00
2011-10-09 10:10:21 +02:00

This directory contains unit tests for the OpenLayers library.

Tests use the Test.AnotherWay library from <http://openjsan.org>. The test
runner is 'run-tests.html' and new test files need to be added to
'list-tests.html'.

The following file naming conventions are used:

  * A filename that starts with `test_` and has an `.html` extension
    contains tests. These should contain tests for a specific class.

  * A filename starting with `page_` and has an `.html` extension is a
    supporting HTML file used in one or more tests.

  * A filename starting with 'data_` is a supporting data file used in one
    or more tests.