1
0
Fork 0

GraphViewer: Added a spec that the layouter menu is generated by the GraphViewerUI

This commit is contained in:
Michael Hackstein 2013-04-16 10:48:53 +02:00
parent 5e69af80b8
commit 57ef46e895
1 changed files with 10 additions and 0 deletions

View File

@ -245,6 +245,16 @@
expect($(menuSelector + " #control_collections").length).toEqual(1);
});
it('should contain a menu for the layouter', function() {
var menuSelector = "#contentDiv #menubar #layoutermenu";
expect($(menuSelector).length).toEqual(1);
expect($(menuSelector)[0]).toBeADropdownMenu();
expect($(menuSelector + " #control_gravity").length).toEqual(1);
expect($(menuSelector + " #control_distance").length).toEqual(1);
expect($(menuSelector + " #control_charge").length).toEqual(1);
});
it('should have the same layout as the web interface', function() {
var header = div.children[0],
transHeader = header.firstChild,