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

Sorted object diff to improve failure output (fixes issue #206) #208

Closed
wants to merge 2 commits into from

Conversation

gijsk
Copy link
Contributor

@gijsk gijsk commented Mar 2, 2012

Before: http://jsfiddle.net/mhpZA/

After: http://jsfiddle.net/mhpZA/1/

(note that previously, the diff output depended on the object property definition/setting order, and incorrectly showed additions/deletions where property values were identical, and now it does not)

I considered adding new tests for this but as far as I could tell there were no tests for the diff output, only for jsDump output and, so I left it at this.

@jzaefferer
Copy link
Member

Thanks!

Rebased to cleanup whitespace (replacing spaces with tabs) and reordered some var declarations: 3c653d4

@jzaefferer jzaefferer closed this Mar 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants