Skip to content

Commit

Permalink
jasmine test updates for pixel-level changes
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Sep 20, 2017
1 parent 7605ae5 commit 4d52bbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/jasmine/tests/sankey_test.js
Expand Up @@ -366,7 +366,7 @@ describe('sankey tests', function() {
.then(function() {
expect(d3.selectAll('.sankey .nodeRect')[0].reduce(function(prevMin, rect) {
return Math.min(prevMin, d3.select(rect).attr('height'));
}, Infinity)).toEqual(1);
}, Infinity)).toEqual(0.5);
done();
});
});
Expand All @@ -375,7 +375,7 @@ describe('sankey tests', function() {
describe('Test hover/click interactions:', function() {
afterEach(destroyGraphDiv);

it('should shows the correct hover labels', function(done) {
it('should show the correct hover labels', function(done) {
var gd = createGraphDiv();
var mockCopy = Lib.extendDeep({}, mock);

Expand All @@ -386,7 +386,7 @@ describe('sankey tests', function() {
}

Plotly.plot(gd, mockCopy).then(function() {
_hover(400, 300);
_hover(404, 302);

assertLabel(
['Solid', 'Incoming flow count: 4', 'Outgoing flow count: 3', '447TWh'],
Expand All @@ -404,7 +404,7 @@ describe('sankey tests', function() {
return Plotly.relayout(gd, 'hoverlabel.font.family', 'Roboto');
})
.then(function() {
_hover(400, 300);
_hover(404, 302);

assertLabel(
['Solid', 'Incoming flow count: 4', 'Outgoing flow count: 3', '447TWh'],
Expand All @@ -427,7 +427,7 @@ describe('sankey tests', function() {
});
})
.then(function() {
_hover(400, 300);
_hover(404, 302);

assertLabel(
['Solid', 'Incoming flow count: 4', 'Outgoing flow count: 3', '447TWh'],
Expand Down Expand Up @@ -482,7 +482,7 @@ describe('sankey tests', function() {

function _makeWrapper(eventType, mouseFn) {
var posByElementType = {
node: [400, 300],
node: [404, 302],
link: [450, 300]
};

Expand Down

0 comments on commit 4d52bbb

Please sign in to comment.