Sha256: 83c631194a7e32598d69d7b4311014f4e93923b80dfe393aff53954cf9d33c84
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
describe("Map.Drag", function () { describe("#addHook", function () { it("calls the map with dragging enabled", function () { var container = document.createElement('div'), map = new L.Map(container, { dragging: true }); expect(map.dragging.enabled()).to.be(true); map.setView([0, 0], 0); expect(map.dragging.enabled()).to.be(true); }); it("calls the map with dragging and worldCopyJump enabled", function () { var container = document.createElement('div'), map = new L.Map(container, { dragging: true, worldCopyJump: true }); expect(map.dragging.enabled()).to.be(true); map.setView([0, 0], 0); expect(map.dragging.enabled()).to.be(true); }); it("calls the map with dragging disabled and worldCopyJump enabled; " + "enables dragging after setting center and zoom", function () { var container = document.createElement('div'), map = new L.Map(container, { dragging: false, worldCopyJump: true }); expect(map.dragging.enabled()).to.be(false); map.setView([0, 0], 0); map.dragging.enable(); expect(map.dragging.enabled()).to.be(true); }); }); });
Version data entries
6 entries across 6 versions & 1 rubygems