fixing tests

This commit is contained in:
Shelby Sturgis 2014-08-27 18:59:03 +03:00
parent ee4e44df96
commit 2406e20008
3 changed files with 7 additions and 3 deletions

View file

@ -14,6 +14,7 @@ define(function (require) {
_(Vis).inherits(Events);
function Vis($el, config) {
Vis.Super.apply(this, arguments);
this.el = $el.get ? $el.get(0) : $el;
this.ChartClass = chartTypes[config.type];
this._attr = _.defaults(config || {}, {
@ -91,6 +92,7 @@ define(function (require) {
charts = this.charts = [];
this.renderCharts(vis, charts);
console.log(this);
this.checkSize();
};

View file

@ -84,9 +84,11 @@ define(function (require) {
el = d3.select('body').append('div')
.attr('class', 'vis-wrapper');
el.append('div')
.attr('class', 'y-axis-title');
.attr('class', 'y-axis-title')
.style('height', '20px');
el.append('div')
.attr('class', 'x-axis-title');
.attr('class', 'x-axis-title')
.style('height', '20px');
dataObj = new Data(data);
xTitle = dataObj.get('xAxisLabel');

View file

@ -78,7 +78,7 @@ define(function (require) {
beforeEach(function () {
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'));
el = d3.select('body').append('div')