Graph: toggle legend on/off from panel menu, #941, no keyboard shortcut yet, but could come

This commit is contained in:
Torkel Ödegaard
2014-11-08 18:12:05 +01:00
parent d12f4a4aee
commit 2ab19148c1
5 changed files with 13 additions and 23 deletions

View File

@@ -27,11 +27,6 @@ define([
ctx.scope.$digest();
});
it('should build legend model', function() {
expect(ctx.scope.legend[0].alias).to.be('test.cpu1');
expect(ctx.scope.legend[1].alias).to.be('test.cpu2');
});
it('should send time series to render', function() {
var data = ctx.scope.render.getCall(0).args[0];
expect(data.length).to.be(2);
@@ -44,10 +39,6 @@ define([
ctx.scope.$digest();
});
it('should clear the legend data', function() {
expect(ctx.scope.legend).to.eql([]);
});
});
});