| 1 | <html> |
| 2 | <head> |
| 3 | <meta charset="utf-8"> |
| 4 | <title>Mocha Tests</title> |
| 5 | <link rel="stylesheet" href="../node_modules/mocha/mocha.css" /> |
| 6 | </head> |
| 7 | <body> |
| 8 | <div id="map" style="display: none; height: 300px"></div> |
| 9 | <div id="mocha"></div> |
| 10 | <script src="../node_modules/chai/chai.js"></script> |
| 11 | <script src="../node_modules/mocha/mocha.js"></script> |
| 12 | <script src="../node_modules/leaflet/build/deps.js"></script> |
| 13 | <script src="../node_modules/leaflet/debug/leaflet-include.js"></script> |
| 14 | <script src="../dist/leaflet.geometryutil.js"></script> |
| 15 | |
| 16 | <script> |
| 17 | var map = L.map('map').fitWorld(); |
| 18 | </script> |
| 19 | |
| 20 | <script>mocha.setup('bdd')</script> |
| 21 | <script src="test.geometryutil.js"></script> |
| 22 | <script> |
| 23 | (window.mochaPhantomJS || window.mocha).run(); |
| 24 | </script> |
| 25 | </body> |
| 26 | </html> |