1
0
Fork 0

Fixed frontend tests, corrected id of svg element to real version. Is now required in code

This commit is contained in:
Michael Hackstein 2014-06-16 23:19:38 +02:00
parent 386bed318a
commit e6d6e25a7f
1 changed files with 3 additions and 11 deletions

View File

@ -141,7 +141,7 @@
};
svg = document.createElement("svg");
svg.id = "svg";
svg.id = "graphViewerSVG";
document.body.appendChild(svg);
nodeShaper = new NodeShaper(d3.select("svg"));
edgeShaper = new EdgeShaper(d3.select("svg"));
@ -254,7 +254,7 @@
//expect(mousePointerbox.className).toEqual("mousepointer icon-plus-sign");
helper.simulateMouseEvent("click", "svg");
helper.simulateMouseEvent("click", svg.id);
expect($("#control_event_new_node_modal").length).toEqual(1);
@ -270,14 +270,6 @@
jasmine.any(Number), // Number not yet correctly tested
jasmine.any(Number)
);
/*
expect(adapter.createNode).toHaveBeenCalledWith(
{
name: "Bob"
},
jasmine.any(Function)
);
*/
});
@ -718,7 +710,7 @@
helper.simulateMouseEvent("click", "control_event_connect");
helper.simulateMouseEvent("mousedown", "2");
helper.simulateMouseMoveEvent("svg", x, y);
helper.simulateMouseMoveEvent(svg.id, x, y);
line = $("#connectionLine");
//The Helper event triggers at (0,0) no matter where the node is.