mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Merge pull request #432 from spenceralger/remove_broken_test
remove randomly breaking test
This commit is contained in:
commit
91c2644d36
1 changed files with 0 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue