Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/798' into hotfix/2.0.0-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwoodhull committed Apr 3, 2015
2 parents c28302a + 600dd48 commit 6174160
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/heatmap-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,27 @@ describe("dc.heatmap", function() {
});
});

describe('indirect filtering', function(){
var dimension2, group2;
beforeEach(function () {
dimension2 = data.dimension(function(d){ return +d.colorData; });
group2 = dimension2.group().reduceSum(function (d) { return +d.colorData; });

chart.dimension(dimension).group(group);
chart.render();
dimension2.filter('3');
chart.redraw();
});

it('should update the title of the boxes', function(){
var titles = chart.selectAll(".box-group title");
var expected = ["1,1: 0", "1,2: 0", "2,1: 6", "2,2: 0"];
titles.each(function(d){
expect(this.textContent).toBe(expected.shift());
});
});
});

describe('filtering', function() {
var filterX, filterY;
var otherDimension;
Expand Down

0 comments on commit 6174160

Please sign in to comment.