debugging test failure that only occurs on travis

This commit is contained in:
Spencer Alger 2014-09-12 13:34:29 -07:00
parent 4e0d859307
commit e8ee8ffe9e

View file

@ -178,10 +178,20 @@ define(function (require) {
});
describe('render Method', function () {
beforeEach(function () {
expect(d3.select(yAxis.el).selectAll('.y-axis-div')).to.have.length(1);
[$(yAxis.el), $(yAxis.el).find('.y-axis-div')].forEach(debug);
yAxis.render();
beforeEach(function (done) {
var $node = $(yAxis.el);
(function check() {
if ($node.css('display') !== '-webkit-box') {
console.log('waiting for css to load');
setTimeout(check, 1000);
} else {
expect(d3.select(yAxis.el).selectAll('.y-axis-div')).to.have.length(1);
[$(yAxis.el), $(yAxis.el).find('.y-axis-div')].forEach(debug);
yAxis.render();
done();
}
}());
});
it('should append an svg to div', function () {