Skip to content

Commit a66dc66

Browse files
committed
Merge pull request #214 from plotly/mock-width-height
Add fixed width and height to test mock
2 parents 47353ca + 5aaeee7 commit a66dc66

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

test/image/baselines/geo_first.png

-12.6 KB
Loading

test/image/mocks/geo_first.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
}
1414
],
1515
"layout": {
16-
"showframe": true
16+
"showframe": true,
17+
"width": 600,
18+
"height": 440
1719
}
1820
}

test/jasmine/tests/geo_interact_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Test geo interactions', function() {
2121

2222
describe('scattegeo hover labels', function() {
2323
beforeEach(function() {
24-
mouseEvent('mouseover', 459, 246);
24+
mouseEvent('mouseover', 300, 235);
2525
});
2626

2727
it('should show one hover text group', function() {
@@ -43,7 +43,7 @@ describe('Test geo interactions', function() {
4343

4444
describe('choropleth hover labels', function() {
4545
beforeEach(function() {
46-
mouseEvent('mouseover', 628, 162);
46+
mouseEvent('mouseover', 400, 160);
4747
});
4848

4949
it('should show one hover text group', function() {

0 commit comments

Comments
 (0)