diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-14 13:34:41 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-17 15:48:28 -0600 |
commit | 9252fc84840220106e696cc2116e7804c9529c5a (patch) | |
tree | c1bafe27ad0cac8e4b49bd476ad2e3947fe4fca9 /extlib/leaflet/spec/suites/geo/ProjectionSpec.js | |
parent | 572106e23037997db9a4e131029b0a4f7cb969b5 (diff) | |
download | mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.lz mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.xz mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.zip |
Remove extlib deps moved into bower
Diffstat (limited to 'extlib/leaflet/spec/suites/geo/ProjectionSpec.js')
-rw-r--r-- | extlib/leaflet/spec/suites/geo/ProjectionSpec.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/extlib/leaflet/spec/suites/geo/ProjectionSpec.js b/extlib/leaflet/spec/suites/geo/ProjectionSpec.js deleted file mode 100644 index 6b9c7b61..00000000 --- a/extlib/leaflet/spec/suites/geo/ProjectionSpec.js +++ /dev/null @@ -1,42 +0,0 @@ -describe("Projection.Mercator", function() {
- var p = L.Projection.Mercator;
-
- beforeEach(function() {
- function almostEqual(a, b, p) {
- return Math.abs(a - b) <= (p || 1.0E-12);
- };
- this.addMatchers({
- toAlmostEqual: function(expected, margin) {
- var p1 = this.actual,
- p2 = expected;
- return almostEqual(p1.x, p2.x, margin) && almostEqual(p1.y, p2.y, margin);
- }
- });
- });
-
-
- describe("#project", function() {
- it("should do projection properly", function() {
- //edge cases
- expect(p.project(new L.LatLng(0, 0))).toAlmostEqual(new L.Point(0, 0));
- expect(p.project(new L.LatLng(90, 180))).toAlmostEqual(new L.Point(-Math.PI, Math.PI));
- expect(p.project(new L.LatLng(-90, -180))).toAlmostEqual(new L.Point(-Math.PI, -Math.PI));
-
- expect(p.project(new L.LatLng(50, 30))).toAlmostEqual(new L.Point(0.523598775598, 1.010683188683));
- });
- });
-
- describe("#unproject", function() {
- it("should do unprojection properly", function() {
- function pr(point) {
- return p.project(p.unproject(point));
- }
-
- expect(pr(new L.Point(0, 0))).toAlmostEqual(new L.Point(0, 0));
- expect(pr(new L.Point(-Math.PI, Math.PI))).toAlmostEqual(new L.Point(-Math.PI, Math.PI));
- expect(pr(new L.Point(-Math.PI, -Math.PI))).toAlmostEqual(new L.Point(-Math.PI, -Math.PI));
-
- expect(pr(new L.Point(0.523598775598, 1.010683188683))).toAlmostEqual(new L.Point(0.523598775598, 1.010683188683));
- });
- });
-});
\ No newline at end of file |