more tweaks

This commit is contained in:
Torkel Ödegaard 2015-04-28 09:26:20 +02:00
parent 9590f485f1
commit bcb80eb38f
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
});
module.controller('GraphCtrl', function($scope, $rootScope, panelSrv, annotationsSrv, panelHelper, $q) {
console.log('Graph: init: ' + $scope.panel.id);
$scope.panelMeta = new PanelMeta({
panelName: 'Graph',

View File

@ -123,12 +123,17 @@ define([
});
it('should mark second row as repeated', function() {
expect(ctx.rows[0].linked).to.be(undefined);
expect(ctx.rows[0].repeat).to.be('$servers');
expect(ctx.rows[1].linked).to.be(true);
});
it('should clear repeat field on repeated row', function() {
expect(ctx.rows[1].repeat).to.be(null);
});
it('should generate a repeartRowId based on repeat row index', function() {
expect(ctx.rows[1].repeatRowId).to.be(1);
});
it('should set scopedVars on row panels', function() {
expect(ctx.rows[0].panels[0].scopedVars.servers.value).to.be('se1');
expect(ctx.rows[1].panels[0].scopedVars.servers.value).to.be('se2');