aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/spec/suites/geometry/PointSpec.js
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-02-14 13:34:41 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-02-17 15:48:28 -0600
commit9252fc84840220106e696cc2116e7804c9529c5a (patch)
treec1bafe27ad0cac8e4b49bd476ad2e3947fe4fca9 /extlib/leaflet/spec/suites/geometry/PointSpec.js
parent572106e23037997db9a4e131029b0a4f7cb969b5 (diff)
downloadmediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.lz
mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.tar.xz
mediagoblin-9252fc84840220106e696cc2116e7804c9529c5a.zip
Remove extlib deps moved into bower
Diffstat (limited to 'extlib/leaflet/spec/suites/geometry/PointSpec.js')
-rw-r--r--extlib/leaflet/spec/suites/geometry/PointSpec.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/extlib/leaflet/spec/suites/geometry/PointSpec.js b/extlib/leaflet/spec/suites/geometry/PointSpec.js
deleted file mode 100644
index d004d60b..00000000
--- a/extlib/leaflet/spec/suites/geometry/PointSpec.js
+++ /dev/null
@@ -1,45 +0,0 @@
-describe("Point", function() {
-
- describe('constructor', function() {
-
- it("should create a point with the given x and y", function() {
- var p = new L.Point(1.5, 2.5);
- expect(p.x).toEqual(1.5);
- expect(p.y).toEqual(2.5);
- });
-
- it("should round the given x and y if the third argument is true", function() {
- var p = new L.Point(1.3, 2.7, true);
- expect(p.x).toEqual(1);
- expect(p.y).toEqual(3);
- });
- });
-
- describe('#subtract', function() {
- it('should subtract the given point from this one', function() {
- var a = new L.Point(50, 30),
- b = new L.Point(20, 10);
- expect(a.subtract(b)).toEqual(new L.Point(30, 20));
- });
- });
-
- describe('#add', function() {
- it('should add the given point to this one', function() {
- expect(new L.Point(50, 30).add(new L.Point(20, 10))).toEqual(new L.Point(70, 40));
- });
- });
-
- describe('#divideBy', function() {
- it('should divide this point by the given amount', function() {
- expect(new L.Point(50, 30).divideBy(5)).toEqual(new L.Point(10, 6));
- });
- });
-
- describe('#multiplyBy', function() {
- it('should multiply this point by the given amount', function() {
- expect(new L.Point(50, 30).multiplyBy(2)).toEqual(new L.Point(100, 60));
- });
- });
-
- describe('#distanceTo', noSpecs);
-}); \ No newline at end of file