1
0
Fork 0

GraphViewer: Fixed eventDispatcherUITest. It did not clean up properly

This commit is contained in:
Michael Hackstein 2013-05-13 19:05:17 +02:00
parent c0a389b56e
commit 1d5b5ef4d6
1 changed files with 7 additions and 6 deletions

View File

@ -173,6 +173,7 @@
afterEach(function () {
expect(list).toConformToToolbox();
document.body.removeChild(list);
document.body.removeChild(svg);
});
it('should throw errors if not setup correctly', function() {
@ -245,12 +246,12 @@
helper.simulateMouseEvent("click", "control_node_edit_submit");
expect(adapter.patchNode).toHaveBeenCalledWith(
nodes[0],
{ _id: "1",
name: "Bob"
},
jasmine.any(Function));
});
nodes[0],
{ _id: "1",
name: "Bob"
},
jasmine.any(Function));
});
waitsFor(function() {
return $("#control_node_edit_modal").length === 0;