aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/spec/suites/geometry/BoundsSpec.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/BoundsSpec.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/BoundsSpec.js')
-rw-r--r--extlib/leaflet/spec/suites/geometry/BoundsSpec.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/extlib/leaflet/spec/suites/geometry/BoundsSpec.js b/extlib/leaflet/spec/suites/geometry/BoundsSpec.js
deleted file mode 100644
index eee05e4b..00000000
--- a/extlib/leaflet/spec/suites/geometry/BoundsSpec.js
+++ /dev/null
@@ -1,43 +0,0 @@
-describe('Bounds', function() {
- var a, b;
-
- beforeEach(function() {
- a = new L.Bounds(
- new L.Point(14, 12),
- new L.Point(30, 40));
- b = new L.Bounds([
- new L.Point(20, 12),
- new L.Point(14, 20),
- new L.Point(30, 40)
- ]);
- });
-
- describe('constructor', function() {
- it('should create bounds with proper min & max on (Point, Point)', function() {
- expect(a.min).toEqual(new L.Point(14, 12));
- expect(a.max).toEqual(new L.Point(30, 40));
- });
- it('should create bounds with proper min & max on (Point[])', function() {
- expect(b.min).toEqual(new L.Point(14, 12));
- expect(b.max).toEqual(new L.Point(30, 40));
- });
- });
-
- describe('#extend', function() {
- it('should extend the bounds to contain the given point', function() {
- a.extend(new L.Point(50, 20));
- expect(a.min).toEqual(new L.Point(14, 12));
- expect(a.max).toEqual(new L.Point(50, 40));
-
- b.extend(new L.Point(25, 50));
- expect(b.min).toEqual(new L.Point(14, 12));
- expect(b.max).toEqual(new L.Point(30, 50));
- });
- });
-
- describe('#getCenter', function() {
- it('should return the center point', function() {
- expect(a.getCenter()).toEqual(new L.Point(22, 26));
- });
- });
-}); \ No newline at end of file