GUI -- Continued porting topology behavior over to the new codebase. WIP.
- added FnService.windowSize() function.
- added MastService and mastHeight() function.
- implemented SvgUtilService.createDragBehavior().
Change-Id: I5dae35244ab8220e1b95ddfd55b180e6adcb7a00
diff --git a/web/gui/src/main/webapp/tests/app/fw/mast/mast-spec.js b/web/gui/src/main/webapp/tests/app/fw/mast/mast-spec.js
index 131be1f..67fbfbb 100644
--- a/web/gui/src/main/webapp/tests/app/fw/mast/mast-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/mast/mast-spec.js
@@ -21,15 +21,20 @@
// instantiate the masthead module
beforeEach(module('onosMast'));
- var $log, ctrl;
+ var $log, ctrl, ms;
// we need an instance of the controller
- beforeEach(inject(function(_$log_, $controller) {
+ beforeEach(inject(function(_$log_, $controller, MastService) {
$log = _$log_;
ctrl = $controller('MastCtrl');
+ ms = MastService;
}));
it('should start with no radio buttons', function () {
expect(ctrl.radio).toBeNull();
});
+
+ it('should declare height to be 36', function () {
+ expect(ms.mastHeight()).toBe(36);
+ })
});