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

[mocks] make location.onhashchange debounced async #1766

Merged
merged 1 commit into from
Apr 1, 2017

Conversation

pygy
Copy link
Member

@pygy pygy commented Apr 1, 2017

Make the mock history.onhashchange behave closer to the real thing.

This patch only changes test-utils/pushStateMock.js and the corresponding test files. Since the mocks support pushState, the onhashchange mode of the router is apparently never tested (or at least never in ways that differ whether onhashchange is synchronous or debounced, async).

This is a prerequisite to fix #1734. Theoretically, the rest of the fix may be independent of #1592 / #1765 but if the tests must be modified in any way, I'd rather wait on at least #1592 to be merged, otherwise conflicts will arise.

@pygy pygy merged commit 30edf36 into MithrilJS:next Apr 1, 2017
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

Successfully merging this pull request may close these issues.

Route is not resolved on hash change in IE
1 participant