Skip to content

Commit

Permalink
#313 rebase post-merge change
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Apr 17, 2016
1 parent 92a7c90 commit 1c6014a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 8 additions & 10 deletions test/jasmine/tests/click_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ describe('Test click interactions:', function() {
});
});

describe('click events with hoverinfo set to none', function() {
describe('click event with hoverinfo set to none - plotly_click', function() {
var futureData;

beforeEach(function(done) {
gd = createGraphDiv();

var mockCopy = Lib.extendDeep({}, mock);
mockCopy.data[0].hoverinfo = 'none';
Plotly.plot(gd, mockCopy.data, mockCopy.layout)
var modifiedMockCopy = Lib.extendDeep({}, mockCopy);
modifiedMockCopy.data[0].hoverinfo = 'none';
Plotly.plot(gd, modifiedMockCopy.data, modifiedMockCopy.layout)
.then(done);

gd.on('plotly_click', function(data) {
Expand All @@ -128,15 +127,14 @@ describe('Test click interactions:', function() {
});
});

describe('click events with hoverinfo set to none', function() {
describe('click events with hoverinfo set to none - plotly_hover', function() {
var futureData;

beforeEach(function(done) {
gd = createGraphDiv();

var mockCopy = Lib.extendDeep({}, mock);
mockCopy.data[0].hoverinfo = 'none';
Plotly.plot(gd, mockCopy.data, mockCopy.layout)
var modifiedMockCopy = Lib.extendDeep({}, mockCopy);
modifiedMockCopy.data[0].hoverinfo = 'none';
Plotly.plot(gd, modifiedMockCopy.data, modifiedMockCopy.layout)
.then(done);

gd.on('plotly_hover', function(data) {
Expand Down
1 change: 1 addition & 0 deletions test/jasmine/tests/gl_plot_interact_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe('Test gl plot interactions', function() {
destroyGraphDiv();
});

// put callback in the event queue
function delay(done) {
setTimeout(done, 0);
}
Expand Down

0 comments on commit 1c6014a

Please sign in to comment.