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

Reorder events dispatched in readyStateChange in FakeXMLHttpRequest #722

Merged
merged 1 commit into from
Apr 13, 2015

Conversation

gavboulton
Copy link

Event listeners for progress, load and readyStateChange function in FakeXMLHttpRequest are dispatched in a different order in comparison to a browser. Reorder the events dispatched to reflect general browser behaviour.

Add a test to verify the dispatch order.

…`readyStateChange` function in `FakeXMLHttpRequest` are dispatched in a different order in comparison to a browser. Reorder the events dispatched to reflect general browser behaviour.
@gavboulton gavboulton force-pushed the bugfix/event-dispatch-order branch from 7a51cdd to 435a888 Compare April 10, 2015 11:07
@gavboulton
Copy link
Author

I added and then removed a file and then pushed to force a new travis test. All tests passed. When removing the two commits to return this to the original PR the tests have gone back to their failed state. I think the first test just timed out so if you can re-run this the tests will pass.

mroderick added a commit that referenced this pull request Apr 13, 2015
Reorder events dispatched in `readyStateChange` in `FakeXMLHttpRequest`
@mroderick mroderick merged commit 5576a1b into sinonjs:master Apr 13, 2015
@mroderick
Copy link
Member

I triggered a new build in Travis, and all is green.

Thanks! 👍

@gavboulton
Copy link
Author

Awesome. Glad I could help!

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.

2 participants