From 0eb2325a42fae6132be7e505373172e93ca9fe37 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Tue, 30 Sep 2014 14:37:49 -0700 Subject: [PATCH] remove randomly breaking test --- test/unit/specs/vislib/vis.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/test/unit/specs/vislib/vis.js b/test/unit/specs/vislib/vis.js index ece3ce864e117..eaaf9bdbeac03 100644 --- a/test/unit/specs/vislib/vis.js +++ b/test/unit/specs/vislib/vis.js @@ -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();