mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
fixing tests
This commit is contained in:
parent
ee4e44df96
commit
2406e20008
3 changed files with 7 additions and 3 deletions
|
@ -14,6 +14,7 @@ define(function (require) {
|
||||||
_(Vis).inherits(Events);
|
_(Vis).inherits(Events);
|
||||||
function Vis($el, config) {
|
function Vis($el, config) {
|
||||||
Vis.Super.apply(this, arguments);
|
Vis.Super.apply(this, arguments);
|
||||||
|
|
||||||
this.el = $el.get ? $el.get(0) : $el;
|
this.el = $el.get ? $el.get(0) : $el;
|
||||||
this.ChartClass = chartTypes[config.type];
|
this.ChartClass = chartTypes[config.type];
|
||||||
this._attr = _.defaults(config || {}, {
|
this._attr = _.defaults(config || {}, {
|
||||||
|
@ -91,6 +92,7 @@ define(function (require) {
|
||||||
charts = this.charts = [];
|
charts = this.charts = [];
|
||||||
this.renderCharts(vis, charts);
|
this.renderCharts(vis, charts);
|
||||||
|
|
||||||
|
console.log(this);
|
||||||
this.checkSize();
|
this.checkSize();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -84,9 +84,11 @@ define(function (require) {
|
||||||
el = d3.select('body').append('div')
|
el = d3.select('body').append('div')
|
||||||
.attr('class', 'vis-wrapper');
|
.attr('class', 'vis-wrapper');
|
||||||
el.append('div')
|
el.append('div')
|
||||||
.attr('class', 'y-axis-title');
|
.attr('class', 'y-axis-title')
|
||||||
|
.style('height', '20px');
|
||||||
el.append('div')
|
el.append('div')
|
||||||
.attr('class', 'x-axis-title');
|
.attr('class', 'x-axis-title')
|
||||||
|
.style('height', '20px');
|
||||||
|
|
||||||
dataObj = new Data(data);
|
dataObj = new Data(data);
|
||||||
xTitle = dataObj.get('xAxisLabel');
|
xTitle = dataObj.get('xAxisLabel');
|
||||||
|
|
|
@ -78,7 +78,7 @@ define(function (require) {
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
inject(function (d3, Private) {
|
inject(function (d3, Private) {
|
||||||
XAxis = Private(require('components/vislib/modules/XAxis'));
|
XAxis = Private(require('components/vislib/modules/Xaxis'));
|
||||||
Data = Private(require('components/vislib/modules/Data'));
|
Data = Private(require('components/vislib/modules/Data'));
|
||||||
|
|
||||||
el = d3.select('body').append('div')
|
el = d3.select('body').append('div')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue