Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Show diff only when it helps #335

Closed
jzaefferer opened this issue Oct 22, 2012 · 1 comment
Closed

Show diff only when it helps #335

jzaefferer opened this issue Oct 22, 2012 · 1 comment

Comments

@jzaefferer
Copy link
Member

If the length of the diff is just the length of expected.length + actual.length, its likely to be useless. Its only useful if it can reduce the input.

@jzaefferer
Copy link
Member Author

Not as easy as it seems. Current diffs have irregular whitespace and since they contain markup for the red/green highlighting, their length can't be compared to the input without getting rid of the markup first. Should try #364 before spending more time on this.

shivamdixit added a commit to shivamdixit/qunit that referenced this issue Mar 17, 2015
Don't show diff if expected and actual values are completely different
and there is nothing in common

Fixes qunitjs#335
leobalter pushed a commit to leobalter/qunit that referenced this issue Mar 27, 2015
Don't show diff if expected and actual values are completely different
and there is nothing in common

Fixes qunitjs#335
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging a pull request may close this issue.

1 participant