Skip to content

Commit 02b0c92

Browse files
committed
Update tests per gate addition
1 parent 0f9af80 commit 02b0c92

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

test/jasmine/tests/geo_test.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,6 @@ describe('Test geo interactions', function () {
15311531
it('should clear hover label when cursor slips off subplot', function (done) {
15321532
var gd = createGraphDiv();
15331533
var fig = Lib.extendDeep({}, require('../../image/mocks/geo_orthographic.json'));
1534-
fig.layout.geo.fitbounds = false;
15351534

15361535
function _assert(msg, hoverLabelCnt) {
15371536
expect(d3SelectAll('g.hovertext').size()).toBe(hoverLabelCnt, msg);
@@ -1577,7 +1576,6 @@ describe('Test geo interactions', function () {
15771576

15781577
fig.data[0].visible = false;
15791578
fig.layout.geo.projection.rotation = { lon: -75, lat: 90 };
1580-
fig.layout.geo.fitbounds = false;
15811579

15821580
function check(p, hoverLabelCnt) {
15831581
mouseEvent('mousemove', p[0], p[1]);
@@ -2406,7 +2404,6 @@ describe('Test geo zoom/pan/drag interactions:', function () {
24062404
fig.layout.width = 700;
24072405
fig.layout.height = 500;
24082406
fig.layout.dragmode = 'pan';
2409-
fig.layout.geo.fitbounds = false;
24102407
});
24112408

24122409
function _assert(step, attr, proj, eventKeys) {
@@ -2511,6 +2508,8 @@ describe('Test geo zoom/pan/drag interactions:', function () {
25112508
});
25122509

25132510
it('- fitbounds case', function (done) {
2511+
// Clear the mock's user-set rotation so the fitbounds gate doesn't opt out
2512+
delete fig.layout.geo.projection.rotation;
25142513
fig.layout.geo.fitbounds = 'locations';
25152514

25162515
newPlot(fig)
@@ -2574,7 +2573,6 @@ describe('Test geo zoom/pan/drag interactions:', function () {
25742573
beforeEach(function () {
25752574
fig = Lib.extendDeep({}, require('../../image/mocks/geo_orthographic'));
25762575
fig.layout.dragmode = 'pan';
2577-
fig.layout.geo.fitbounds = false;
25782576

25792577
// of layout width = height = 500
25802578
});
@@ -2678,6 +2676,8 @@ describe('Test geo zoom/pan/drag interactions:', function () {
26782676
});
26792677

26802678
it('- fitbounds case', function (done) {
2679+
// Clear the mock's user-set rotation so the fitbounds gate doesn't opt out
2680+
delete fig.layout.geo.projection.rotation;
26812681
fig.layout.geo.fitbounds = 'locations';
26822682

26832683
newPlot(fig)
@@ -2974,7 +2974,6 @@ describe('Test geo zoom/pan/drag interactions:', function () {
29742974
fig.data = [fig.data[0]];
29752975
fig.layout.width = 700;
29762976
fig.layout.height = 500;
2977-
fig.layout.geo.fitbounds = false;
29782977

29792978
newPlot(fig)
29802979
.then(function () {
@@ -2993,7 +2992,6 @@ describe('Test geo zoom/pan/drag interactions:', function () {
29932992
fig.layout.width = 700;
29942993
fig.layout.height = 500;
29952994
fig.layout.dragmode = 'pan';
2996-
fig.layout.geo.fitbounds = false;
29972995

29982996
function _assert(step, attr, proj, eventKeys) {
29992997
var msg = '[' + step + '] ';
@@ -3163,7 +3161,6 @@ describe('Test geo interactions update marker angles:', function () {
31633161
fig.layout.width = 700;
31643162
fig.layout.height = 500;
31653163
fig.layout.dragmode = 'pan';
3166-
fig.layout.geo.fitbounds = false;
31673164

31683165
var initialPath, newPath;
31693166

0 commit comments

Comments
 (0)