Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The WebChannel mocking now calls the original functions for addEventListener, removeEventListener, and dispatchEvent. This means that it won't interfere with other uses of these APIs. One example of such a use is the popstate event: UrlManager.test.js has a test which makes sure that the URL state is restored when going backwards in history. Using a mocked WebChannel in that test broke it because the popstate event was no longer being dispatched.
- Loading branch information