Skip to content

Commit 3ad3d1e

Browse files
committedSep 28, 2017
add test case that passes with clipPath: 1e-2 but fails with 1e-3
1 parent 3cd0ca5 commit 3ad3d1e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

Diff for: ‎test/jasmine/tests/geo_test.js

+23
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,29 @@ describe('Test geo interactions', function() {
13411341
.catch(fail)
13421342
.then(done);
13431343
});
1344+
1345+
it('relayout bounds edge case', function(done) {
1346+
var gd = createGraphDiv();
1347+
var fig = Lib.extendDeep({}, require('@mocks/geo_orthographic.json'));
1348+
1349+
Plotly.plot(gd, fig).then(function() {
1350+
expect(gd._fullLayout.geo._subplot.bounds).toBeCloseTo2DArray([
1351+
[84, 100], [404, 420]
1352+
]);
1353+
1354+
return Plotly.relayout(gd, {
1355+
'geo.projection.rotation.lon': -73,
1356+
'geo.projection.rotation.lat': 42
1357+
});
1358+
})
1359+
.then(function() {
1360+
expect(gd._fullLayout.geo._subplot.bounds).toBeCloseTo2DArray([
1361+
[84, 100], [404, 420]
1362+
]);
1363+
})
1364+
.catch(fail)
1365+
.then(done);
1366+
});
13441367
});
13451368

13461369
describe('Test event property of interactions on a geo plot:', function() {

0 commit comments

Comments
 (0)
Please sign in to comment.