Skip to content

Commit

Permalink
Merge pull request #432 from spenceralger/remove_broken_test
Browse files Browse the repository at this point in the history
remove randomly breaking test
  • Loading branch information
w33ble committed Oct 1, 2014
2 parents 5ae027f + 0eb2325 commit 91c2644
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/unit/specs/vislib/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,38 +109,6 @@ define(function (require) {
});
});

// TODO: fix this test instead of just skipping it
describe('resize Method', function () {
it('should resize the chart', function () {
var oldWidth, oldHeight;
var width = _.random(400, 600);
var height = _.random(400, 600);

// render, resize and refresh the visualization
vis.render(data);
oldWidth = $('.visualize').width();
oldHeight = $('.visualize').height();

$('.visualize').width(width);
$('.visualize').height(height);
vis.resize();

// ensure that the visualizaiton has been resized
expect($('.visualize').width()).to.not.be(oldWidth);
expect($('.visualize').height()).to.not.be(oldHeight);
expect($('.visualize').width()).to.be(width);
expect($('.visualize').height()).to.be(height);

// check the visualization wrapper (simulate greater/less than or equal to...)
expect($('.vis-wrapper').width()).to.be.lessThan(width + 1);
expect($('.vis-wrapper').height()).to.be.lessThan(height + 1);

// check the visualization labels
expect($('.x-axis-wrapper').width()).to.be.lessThan(width);
expect($('.y-axis-wrapper').height()).to.be.lessThan(height);
});
});

describe('destroy Method', function () {
beforeEach(function () {
vis.destroy();
Expand Down

0 comments on commit 91c2644

Please sign in to comment.