8000 More newPlot calls in tests by archmoj · Pull Request #5393 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

More newPlot calls in tests #5393

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use react in geo test when calc data used to be set to undefined
  • Loading branch information
archmoj committed Jan 12, 2021
commit 981cc40fe02469db4bfa2ffe3de8122401733aff
20 changes: 10 additions & 10 deletions test/jasmine/tests/geo_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,8 @@ describe('Test geo interactions', function() {
done();
}

gd.calcdata = undefined;
Plotly.newPlot(gd, gd.data, gd.layout);
gd.layout.datarevision = String(i);
Plotly.react(gd, gd.data, gd.layout);
i++;
}, INTERVAL);
});
Expand Down Expand Up @@ -1246,8 +1246,8 @@ describe('Test geo interactions', function() {
done();
}

gd.calcdata = undefined;
Plotly.newPlot(gd, gd.data, gd.layout);
gd.layout.datarevision = String(i);
Plotly.react(gd, gd.data, gd.layout);
i++;
}, INTERVAL);
});
Expand Down Expand Up @@ -1277,8 +1277,8 @@ describe('Test geo interactions', function() {
done();
}

gd.calcdata = undefined;
Plotly.newPlot(gd, gd.data, gd.layout);
gd.layout.datarevision = String(i);
Plotly.react(gd, gd.data, gd.layout);
i++;
}, INTERVAL);
});
Expand All @@ -1292,8 +1292,8 @@ describe('Test geo interactions', function() {
var trace1 = gd.data[1];
trace1.locations.shift();

gd.calcdata = undefined;
Plotly.newPlot(gd, gd.data, gd.layout)
gd.layout.datarevision = '0';
Plotly.react(gd, gd.data, gd.layout)
.then(function() {
expect(countTraces('scattergeo')).toBe(1);
expect(countTraces('choropleth')).toBe(1);
Expand All @@ -1319,8 +1319,8 @@ describe('Test geo interactions', function() {
trace1.locations = locationsQueue;
trace1.z = zQueue;

gd.calcdata = undefined;
Plotly.newPlot(gd, gd.data, gd.layout)
gd.layout.datarevision = '0';
Plotly.react(gd, gd.data, gd.layout)
.then(function() {
expect(countTraces('scattergeo')).toBe(1);
expect(countTraces('choropleth')).toBe(1);
Expand Down
0