Skip to content

Make plot_css_test.js asynchronous #806

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 1 commit into from
Aug 2, 2016
Merged

Conversation

rreusser
Copy link
Contributor

@rreusser rreusser commented Aug 2, 2016

See: #764
cc: @etpinard @nielsenb-jf

The child window test in plot_css_test.js is asynchronous but was not implemented as such. As a result, things didn't get cleaned up and d3 transitions after this test gave a cryptic TypeError: d3_window(...) is undefined error. This PR makes all three tests asynchronous.

For reference, strategies used to debug:

  • karma-verbose-reporter to output the current test (otherwise it just halts without any indication of where)
  • specified files: [...] explicitly + alphabetically in karma.ciconf.js and removed them via bisection until the tests that interacted problematically were isolated

@rreusser rreusser added status: reviewable bug something broken labels Aug 2, 2016
@etpinard
Copy link
Contributor

etpinard commented Aug 2, 2016

Fantastic. 💃

@rreusser rreusser merged commit 8942fd3 into master Aug 2, 2016
etpinard added a commit that referenced this pull request Aug 5, 2016
This reverts commit 8942fd3, reversing
changes made to 474891d.
@etpinard etpinard mentioned this pull request Aug 5, 2016
@rreusser rreusser deleted the fix-plotcss-test-bug branch August 11, 2016 19:17
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.

2 participants