Skip to content

Conversation

@alexcjohnson
Copy link
Collaborator

Also Plots.redrawText while we're at it - this is the other one in Plots that might occasionally need to be called from outside.

cc @etpinard @VeraZab

and make sure the resize tests actually DO something
});

afterEach(destroyGraphDiv);
afterAll(destroyGraphDiv);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, if we're doing beforeAll we'd better match it with an afterAll! The second test (should resize...) didn't consider that it might be running against a missing plot (mainSvgs.length was 0) so was in fact a noop. The third test (should update...) I guess was OK, gd was still an object with properties even if it wasn't attached to the DOM...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find 🔬

@etpinard
Copy link
Contributor

💃

@alexcjohnson alexcjohnson merged commit 49307f8 into master Dec 18, 2017
@alexcjohnson alexcjohnson deleted the resize-id branch December 18, 2017 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants