-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Fix unit tests broken by modal bar animation #4437
Comments
Comment by njx I highly recommend reviewing with |
Comment by njx
Note that this does mean that the timing of when modal bars appear/disappear has changed...but I'm inclined not to worry about it too much unless we find actual user-visible issues. |
Comment by njx Oops, retagging |
Comment by gruehle Looks good. Merging. |
Issue by njx
Friday Aug 16, 2013 at 22:41 GMT
Originally opened as adobe/brackets#4800
The modal bar animation added by
@
larz0 added a bit of asynchronicity to the modal bar: it now isn't removed from the DOM until the close animation completes. This pull request fixes up the unit tests so that they wait for the previous modal bar to close (and forcibly remove it at the end of the test) before continuing.Also, some unit tests were breaking because the modal bar was never removing itself from the DOM. This was due to a subtle issue: the new modal bar code was using the
.hide
class, but that class is also defined by Bootstrap to setdisplay: none
. That wasn't affecting the modal bar's behavior in Brackets itself, but was affecting it in the test runner, possibly because stylesheets are loaded in a different order. So I just renamed the class to.modal-bar-hide
to avoid getting contaminated by the Bootstrap rule.njx included the following code: https://github.com/adobe/brackets/pull/4800/commits
The text was updated successfully, but these errors were encountered: