mirror of https://gitee.com/bigwinds/arangodb
GraphViewer: Added test for reshaping if community is formed
This commit is contained in:
parent
bb92f2ee29
commit
7ced744d21
|
@ -85,7 +85,7 @@ function GraphViewer(svg, width, height, adapterConfig, config) {
|
|||
},
|
||||
|
||||
nodeLimitCallBack = function(limit) {
|
||||
self.adapter.setNodeLimit(limit);
|
||||
self.adapter.setNodeLimit(limit, self.start);
|
||||
},
|
||||
|
||||
parseZoomConfig = function(config) {
|
||||
|
|
|
@ -270,6 +270,15 @@ describe("Graph Viewer", function() {
|
|||
expect(viewer.adapter.setNodeLimit).wasCalled();
|
||||
});
|
||||
|
||||
it('should trigger the start function if node limit is reduced to far', function() {
|
||||
spyOn(viewer.adapter, "setNodeLimit").andCallFake(function(l, callback) {
|
||||
callback();
|
||||
});
|
||||
spyOn(viewer, "start");
|
||||
helper.simulateScrollUpMouseEvent("outersvg");
|
||||
expect(viewer.start).wasCalled();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue