Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Misc perf improvements #1772

New issue

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 14 commits into from
Jun 11, 2017
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
Next Next commit
cleanup cartesian_interact_test a little
  • Loading branch information
alexcjohnson committed Jun 9, 2017
commit 31326242e478bcbff16ffca8384d2a14e8ec10c1
18 changes: 11 additions & 7 deletions 18 test/jasmine/tests/cartesian_interact_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ describe('zoom box element', function() {
var mockCopy = Lib.extendDeep({}, mock);
mockCopy.layout.dragmode = 'zoom';

Plotly.plot(gd, mockCopy.data, mockCopy.layout).then(done);
Plotly.plot(gd, mockCopy.data, mockCopy.layout)
.catch(failTest)
.then(done);
});

afterEach(destroyGraphDiv);
Expand Down Expand Up @@ -74,9 +76,9 @@ describe('main plot pan', function() {
relayoutCallback = jasmine.createSpy('relayoutCallback');

gd.on('plotly_relayout', relayoutCallback);

done();
});
})
.catch(failTest)
.then(done);
});

afterEach(destroyGraphDiv);
Expand Down Expand Up @@ -211,6 +213,7 @@ describe('axis zoom/pan and main plot zoom', function() {
// each subplot is 200x200 px
// if constrainScales is used, x/x2/y/y2 are linked, as are x3/y3
// layoutEdits are other changes to make to the layout

var data = [
{y: [0, 1, 2]},
{y: [0, 1, 2], xaxis: 'x2'},
Expand Down Expand Up @@ -242,9 +245,9 @@ describe('axis zoom/pan and main plot zoom', function() {

if(layoutEdits) Lib.extendDeep(layout, layoutEdits);

return Plotly.newPlot(gd, data, layout, config).then(function() {
checkRanges({}, 'initial');

return Plotly.newPlot(gd, data, layout, config)
.then(checkRanges({}, 'initial'))
.then(function() {
expect(Object.keys(gd._fullLayout._plots))
.toEqual(['xy', 'xy2', 'x2y', 'x3y3']);

Expand Down Expand Up @@ -278,6 +281,7 @@ describe('axis zoom/pan and main plot zoom', function() {
function checkRanges(newRanges, msg) {
msg = msg || '';
if(msg) msg = ' - ' + msg;

return function() {
var allRanges = {
xaxis: initialRange.slice(),
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.