Finalized tree view / removed d3
diff --git a/public/js/spec/menuSpec.js b/public/js/spec/menuSpec.js
index 08fea76..7419f83 100644
--- a/public/js/spec/menuSpec.js
+++ b/public/js/spec/menuSpec.js
@@ -154,6 +154,11 @@
expect(mi.lcField()).toEqual(' baum');
});
+ it('shouldn\'t have a reference to the menu', function () {
+ var menuItem = KorAP.OwnMenuItem.create(['Test']);
+ expect(menuItem.menu()).toBe(undefined);
+ });
+
it('should be activatable and deactivateable by class', function () {
var menuItem = KorAP.OwnMenuItem.create(['Test']);
@@ -376,6 +381,15 @@
expect(menu.item(menu.length() - 1).noMore()).toBe(true);
});
+ it('should have a reference to the menu', function () {
+ var menu = KorAP.HintMenu.create("cnx/", list);
+ expect(menu.item(0).menu()).toEqual(menu);
+
+ menu = KorAP.HintMenu.create("cnx/", list);
+ expect(menu.element().menu).toEqual(menu);
+ });
+
+
it('should be visible', function () {
var menu = KorAP.HintMenu.create("cnx/", list);
expect(menu.delete()).toBe(undefined);
@@ -1035,8 +1049,6 @@
});
- it('should be page downable', function () {
-
- });
+ xit('should be page downable');
xit('should be page upable');
});