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

Use html-pretty-printer for comparing generated result with expected result. #2

Open
opensource21 opened this issue Oct 2, 2013 · 0 comments

Comments

@opensource21
Copy link

If you write test you must create an expected result exactly (character by character) as it will be generated. Mostly I only want to know if the html-structure is good.
It's much more convenient to write the expected structure with newlines and indention, than writing everything into one single line with blanks in it.
So I would prefer to have the possibility to pretty-print the result and the expected result. This can be done with XMLPretty-Printing or more less accurate with JTidy.
Another approach would be to compare the DOM-Tree directly.
Third solution: Take the expected result and remove all unused Whitespaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant