mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
@@ -81,6 +81,8 @@ iD.Map = function() {
|
||||
map.size(this.size());
|
||||
|
||||
hideInspector();
|
||||
|
||||
map.surface = surface;
|
||||
}
|
||||
|
||||
map.history = iD.History();
|
||||
@@ -532,7 +534,6 @@ iD.Map = function() {
|
||||
return map;
|
||||
};
|
||||
|
||||
map.surface = surface;
|
||||
map.background = background;
|
||||
map.projection = projection;
|
||||
map.redraw = redraw;
|
||||
|
||||
@@ -60,4 +60,10 @@ describe('Map', function() {
|
||||
expect(map.extent()[1][0]).toBeCloseTo(36);
|
||||
});
|
||||
});
|
||||
|
||||
describe("surface", function() {
|
||||
it("is an SVG element", function() {
|
||||
expect(map.surface.node().tagName).toEqual("svg");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user