Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1760d66

Browse files
committedOct 20, 2017
fixup choropleth select test
- PR plotly#2099 got merged on a branch behind plotly#2081 which caused the test to fail on master.
1 parent 679c0d3 commit 1760d66

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎test/jasmine/tests/select_test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,11 @@ describe('Test select box and lasso per trace:', function() {
717717
addInvisible(fig, false);
718718

719719
// add a trace with no locations which will then make trace invisible, lacking DOM elements
720-
fig.data.push(Lib.extendDeep({}, fig.data[0]));
721-
fig.data[1].text = [];
722-
fig.data[1].locations = [];
723-
fig.data[1].z = [];
720+
var emptyChoroplethTrace = Lib.extendDeep({}, fig.data[0]);
721+
emptyChoroplethTrace.text = [];
722+
emptyChoroplethTrace.locations = [];
723+
emptyChoroplethTrace.z = [];
724+
fig.data.push(emptyChoroplethTrace);
724725

725726
Plotly.plot(gd, fig)
726727
.then(function() {

0 commit comments

Comments
 (0)
Please sign in to comment.