Skip to content
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] Unit tests hang after CodeMirror patches for issue #1787 #4766

Open
core-ai-bot opened this issue Aug 29, 2021 · 3 comments
Open

[CLOSED] Unit tests hang after CodeMirror patches for issue #1787 #4766

core-ai-bot opened this issue Aug 29, 2021 · 3 comments

Comments

@core-ai-bot
Copy link
Member

Issue by jasonsanjose
Thursday Sep 12, 2013 at 17:38 GMT
Originally opened as adobe/brackets#5179


Spun off from #4564.

@RaymondLim reported that unit tests hang after doing a local merge for cursor positioning fixes in codemirror/codemirror5#1787 (comment)

These fixes have not landed in Brackets yet, but we do integrate CodeMirror upstream/master at the beginning of every sprint. This will be an issue at the start of Sprint 32.

@core-ai-bot
Copy link
Member Author

Comment by njx
Friday Sep 20, 2013 at 23:45 GMT


The hang appears to be during createMockEditor(). Probably something to do with the fact that we create a fake editor holder.

@core-ai-bot
Copy link
Member Author

Comment by njx
Saturday Sep 21, 2013 at 00:01 GMT


Looks like the problem is just that our unit tests create mock editors inside an element that has no explicit width (and is absolutely positioned, so has no inherent width). That didn't cause a problem before, but it's understandable why Marijn's change would have broken this. It's arguably a CM bug, but since this isn't a realistic use case I think we can just change our unit tests to set an explicit width on the mock editor holder.

@core-ai-bot
Copy link
Member Author

Comment by njx
Monday Sep 23, 2013 at 20:20 GMT


Fixed this while merging the latest CM. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant